-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathvariables.tf
More file actions
41 lines (33 loc) · 791 Bytes
/
variables.tf
File metadata and controls
41 lines (33 loc) · 791 Bytes
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
variable "app_name" {
description = "Application name"
type = string
}
variable "aws_region" {
description = "AWS region"
type = string
default = "us-east-2"
}
variable "secrets" {
description = "List of objects of secrets"
type = list(
object({
name = string
value = string
allowed_arns = list(string)
})
)
}
variable "delete_in" {
description = "Number of days to wait before secret deletion"
type = number
default = 30
validation {
condition = var.delete_in == 0 || contains(range(7, 31), var.delete_in)
error_message = "The delete_in value must be 0 or between 7 and 30."
}
}
variable "tags" {
description = "Key-value map of tags"
type = map(string)
default = {}
}