File tree 2 files changed +4
-4
lines changed
2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 1
1
resource "aws_security_group" "redis" {
2
2
vpc_id = var. vpc_id
3
3
4
- tags {
4
+ tags = {
5
5
Name = var.tag_name
6
6
environment = var.tag_environment
7
7
team = var.tag_team
@@ -14,7 +14,7 @@ resource "aws_security_group" "redis" {
14
14
resource "aws_elasticache_subnet_group" "default" {
15
15
name = " subnet-group-${ var . tag_team } -${ var . tag_application } -${ var . tag_environment } "
16
16
description = " Private subnets for the ElastiCache instances: ${ var . tag_team } ${ var . tag_application } ${ var . tag_environment } "
17
- subnet_ids = " ${ split (" ," , var. private_subnet_ids )} "
17
+ subnet_ids = split (" ," , var. private_subnet_ids )
18
18
}
19
19
20
20
resource "aws_elasticache_cluster" "redis" {
@@ -29,7 +29,7 @@ resource "aws_elasticache_cluster" "redis" {
29
29
subnet_group_name = aws_elasticache_subnet_group. default . name
30
30
security_group_ids = [aws_security_group . redis . id ]
31
31
32
- tags {
32
+ tags = {
33
33
Name = var.tag_name
34
34
environment = var.tag_environment
35
35
team = var.tag_team
Original file line number Diff line number Diff line change @@ -11,5 +11,5 @@ output "port" {
11
11
}
12
12
13
13
output "endpoint" {
14
- value = " ${ join ( " : " , list ( aws_elasticache_cluster. redis . cache_nodes . 0 . address , aws_elasticache_cluster. redis . cache_nodes . 0 . port )) } "
14
+ value = " ${ aws_elasticache_cluster . redis . cache_nodes [ 0 ] . address } : ${ aws_elasticache_cluster . redis . cache_nodes [ 0 ] . port } "
15
15
}
You can’t perform that action at this time.
0 commit comments