File tree 4 files changed +14
-0
lines changed 4 files changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -28,6 +28,12 @@ variable "postgres_enabled" {
28
28
default = false
29
29
}
30
30
31
+ variable "postgres_enable_kms" {
32
+ type = bool
33
+ description = " Enable KMS encryption"
34
+ default = true
35
+ }
36
+
31
37
variable "postgres_engine_version" {
32
38
description = " Version for RDS database engine"
33
39
type = string
Original file line number Diff line number Diff line change @@ -16,6 +16,7 @@ module "postgres" {
16
16
storage_encrypted = var. postgres_storage_encrypted
17
17
subnet_ids = module. network . private_subnet_ids
18
18
vpc_id = module. network . vpc . id
19
+ enable_kms = var. postgres_enable_kms
19
20
}
20
21
21
22
resource "random_id" "parameter_group" {
Original file line number Diff line number Diff line change @@ -4,6 +4,12 @@ variable "redis_enabled" {
4
4
default = false
5
5
}
6
6
7
+ variable "redis_enable_kms" {
8
+ description = " Enable KMS encryption"
9
+ type = bool
10
+ default = true
11
+ }
12
+
7
13
variable "redis_name" {
8
14
description = " Name of the ElastiCache instance for Redis"
9
15
type = string
Original file line number Diff line number Diff line change @@ -10,6 +10,7 @@ module "redis" {
10
10
replica_count = var. redis_replica_count
11
11
subnet_ids = module. network . private_subnet_ids
12
12
vpc_id = module. network . vpc . id
13
+ enable_kms = var. redis_enable_kms
13
14
}
14
15
15
16
module "redis_token" {
You can’t perform that action at this time.
0 commit comments