Skip to content

Commit

Permalink
Merge pull request #4 from DNXLabs/change_ssm_sg
Browse files Browse the repository at this point in the history
Changed security group and ssm parameter store name
  • Loading branch information
adenot authored Jun 8, 2022
2 parents 5ba0330 + 26bd375 commit e66b1f8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions sg.tf
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
resource "aws_security_group" "redis" {
name = "redis-${var.environment_name}-${var.name}"
name = var.name
vpc_id = var.vpc_id

tags = {
Name = "redis-${var.environment_name}-${var.name}"
Name = var.name
}

lifecycle {
Expand Down
4 changes: 2 additions & 2 deletions ssm.tf
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
resource "aws_ssm_parameter" "redis_endpoint" {
name = "/redis/${var.environment_name}-${var.name}/ENDPOINT"
name = "/redis/${var.name}/ENDPOINT"
description = "Redis Endpoint"
type = "String"
value = aws_elasticache_replication_group.redis.primary_endpoint_address
}

resource "aws_ssm_parameter" "redis_password" {
count = var.transit_encryption_enabled ? 1 : 0
name = "/redis/${var.environment_name}-${var.name}/PASSWORD"
name = "/redis/${var.name}/PASSWORD"
description = "Redis Password"
type = "SecureString"
# value = var.auth_token != null ? var.auth_token : random_string.redis_password[0].result
Expand Down

0 comments on commit e66b1f8

Please sign in to comment.