Skip to content

Commit 2b08337

Browse files
authored
Merge pull request #5 from turnerlabs/tf-fixes
some tf fixes
2 parents 91fade2 + dbe798a commit 2b08337

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

main.tf

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
resource "aws_security_group" "redis" {
22
vpc_id = var.vpc_id
33

4-
tags {
4+
tags = {
55
Name = var.tag_name
66
environment = var.tag_environment
77
team = var.tag_team
@@ -14,7 +14,7 @@ resource "aws_security_group" "redis" {
1414
resource "aws_elasticache_subnet_group" "default" {
1515
name = "subnet-group-${var.tag_team}-${var.tag_application}-${var.tag_environment}"
1616
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)
1818
}
1919

2020
resource "aws_elasticache_cluster" "redis" {
@@ -29,7 +29,7 @@ resource "aws_elasticache_cluster" "redis" {
2929
subnet_group_name = aws_elasticache_subnet_group.default.name
3030
security_group_ids = [aws_security_group.redis.id]
3131

32-
tags {
32+
tags = {
3333
Name = var.tag_name
3434
environment = var.tag_environment
3535
team = var.tag_team

outputs.tf

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,5 @@ output "port" {
1111
}
1212

1313
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}"
1515
}

0 commit comments

Comments
 (0)