File tree Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change 8
8
ssm_path_prefix = format (" /%s/%s" , var. ssm_path_prefix , module. aurora_postgres . outputs . cluster_identifier )
9
9
ssm_password_source = length (var. ssm_password_source ) > 0 ? var. ssm_password_source : format (" %s/%s" , local. ssm_path_prefix , " %s/password" )
10
10
11
- kms_key_arn = module. aurora_postgres . outputs . kms_key_arn
11
+ kms_key_arn = coalesce ( module. aurora_postgres . outputs . kms_key_arn , var . kms_key_arn )
12
12
13
13
default_schema_owner = " postgres"
14
14
}
Original file line number Diff line number Diff line change @@ -47,6 +47,12 @@ variable "cluster_enabled" {
47
47
description = " Set to `false` to prevent the module from creating any resources"
48
48
}
49
49
50
+ variable "kms_key_arn" {
51
+ type = string
52
+ description = " The ARN for the KMS encryption key."
53
+ default = null
54
+ }
55
+
50
56
variable "additional_databases" {
51
57
type = set (string )
52
58
default = []
You can’t perform that action at this time.
0 commit comments