Skip to content

Commit

Permalink
added tags to redis
Browse files Browse the repository at this point in the history
  • Loading branch information
marciogoda committed Sep 13, 2021
1 parent a906cb4 commit 6a68f8c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ resource "aws_elasticache_replication_group" "redis" {
subnet_group_name = aws_elasticache_subnet_group.redis_subnet_group.id
security_group_ids = [aws_security_group.redis_security_group.id]
apply_immediately = var.apply_immediately
tags = var.tags
}

resource "aws_elasticache_parameter_group" "redis_parameter_group" {
Expand Down
6 changes: 6 additions & 0 deletions variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -74,3 +74,9 @@ variable "vpc_id" {
variable "is_test" {
default = false
}

variable "tags" {
description = "Tags wil be apllied to redis cluster tags property"
type = map(string)
default = null
}

0 comments on commit 6a68f8c

Please sign in to comment.