-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvars.tf
85 lines (73 loc) · 2.32 KB
/
vars.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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
variable "name" {
type = string
description = "Name of the secret"
}
variable "description" {
type = string
default = "Created by terrablocks"
description = "Description for the secret"
}
variable "kms_key" {
type = string
default = "alias/aws/secretsmanager"
description = "ID/ARN/Alias of the KMS key to use for encrypting the data stored in the secret"
}
variable "delete_after_days" {
type = number
default = 0
description = "Number of days Secretsmanager should wait before deleting the secret. It should be between 7 to 30 but can be set to 0 to force delete the secret"
}
variable "replica" {
type = list(object({
kms_key = string
region = string
}))
default = []
description = <<-EOT
To replicate your secret to another region. Note: Only block is accepted
```[{
kms_key = ID/ARN/Alias of the KMS key to use in the destination region
region = ID of the region where secret needs to be replicated
}]```
EOT
}
variable "overwrite_replica_secret" {
type = bool
default = true
description = "Whether to overwrite the secret in the replica region if already present"
}
variable "secret_string" {
type = string
default = null
description = "Text data that you want to encrypt and store in the secret. **Note:** Either `secret_string` or `secret_binary` must be provided"
}
variable "secret_binary" {
type = string
default = null
description = "Binary data encoded in base64 format that you want to encrypt and store in the secret. **Note:** Either `secret_string` or `secret_binary` must be provided"
}
variable "policy" {
type = string
default = "{}"
description = "Resource policy to apply to the secret"
}
variable "enable_auto_rotation" {
type = bool
default = false
description = "Whether to automatically updated the secret periodically"
}
variable "lambda_arn" {
type = string
default = null
description = "ARN of lambda function that will rotate the secret"
}
variable "rotate_after_days" {
type = number
default = 60
description = "Number of days after which the secret must be rotated"
}
variable "tags" {
type = map(string)
default = {}
description = "Map of key-value pair to associate with the resource"
}