forked from diodonfrost/terraform-aws-lambda-nuke
-
Notifications
You must be signed in to change notification settings - Fork 1
/
variables.tf
52 lines (44 loc) · 1.57 KB
/
variables.tf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
# Terraform variables file
# Set cloudwatch events for shutingdown instances
# trigger lambda functuon every night at 22h00 from Monday to Friday
# cf doc : https://docs.aws.amazon.com/lambda/latest/dg/tutorial-scheduled-events-schedule-expressions.html
variable "cloudwatch_schedule_expression" {
description = "Define the aws cloudwatch event rule schedule expression"
type = string
default = "cron(0 22 ? * MON-FRI *)"
}
variable "name" {
description = "Define name to use for lambda function, cloudwatch event and iam role"
type = string
default = "everything"
}
variable "custom_iam_role_arn" {
description = "Custom IAM role arn for the scheduling lambda"
type = string
default = null
}
variable "kms_key_arn" {
description = "The ARN for the KMS encryption key. If this configuration is not provided when environment variables are in use, AWS Lambda uses a default service key."
type = string
default = null
}
variable "aws_regions" {
description = "A list of one or more aws regions where the lambda will be apply, default use the current region"
type = list(string)
default = null
}
variable "exclude_resources" {
description = "Define the resources that will not be destroyed"
type = string
default = null
}
variable "older_than" {
description = "Only destroy resources that were created before a certain period"
type = string
default = "0d"
}
variable "tags" {
description = "A map of tags to assign to the resources."
type = map(any)
default = null
}