File tree 2 files changed +4
-12
lines changed
2 files changed +4
-12
lines changed Original file line number Diff line number Diff line change 1
1
resource "aws_ssm_parameter" "redis_endpoint" {
2
- count = var. secret_method == " ssm" ? 1 : 0
3
- name = " /elasticache/redis/${ var . environment_name } -${ var . name } /ENDPOINT"
2
+ name = " /elasticache/redis/${ var . env } -${ var . name } /ENDPOINT"
4
3
description = " Elasticache Redis Endpoint"
5
4
type = " String"
6
- value = aws_elasticache_replication_group. redis [ 0 ] . primary_endpoint_address
5
+ value = aws_elasticache_replication_group. redis . primary_endpoint_address
7
6
}
8
7
9
8
resource "aws_ssm_parameter" "redis_port" {
10
- count = var. secret_method == " ssm" ? 1 : 0
11
- name = " /elasticache/redis/${ var . environment_name } -${ var . name } /PORT"
9
+ name = " /elasticache/redis/${ var . env } -${ var . name } /PORT"
12
10
description = " Elasticache Redis Port"
13
11
type = " String"
14
- value = aws_elasticache_replication_group. redis [ 0 ] . port
12
+ value = aws_elasticache_replication_group. redis . port
15
13
}
Original file line number Diff line number Diff line change @@ -170,9 +170,3 @@ variable "notification_topic_arn" {
170
170
type = string
171
171
default = " "
172
172
}
173
-
174
- variable "secret_method" {
175
- description = " Use ssm for SSM parameters store which is the default option, or secretsmanager for AWS Secrets Manager"
176
- type = string
177
- default = " ssm"
178
- }
You can’t perform that action at this time.
0 commit comments