Skip to content

Commit

Permalink
feat: Add tags variable to redis (#11)
Browse files Browse the repository at this point in the history
* feat: updated aws_elasticache_replication_group with tag.

* feat: Added tags variable.
  • Loading branch information
akhil-redacre authored Dec 26, 2023
1 parent c49f964 commit a7df8a1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions aws/redis/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ resource "aws_elasticache_replication_group" "redis" {
engine_version = var.engine_version
engine = "redis"
multi_az_enabled = var.multi_az_enabled
tags = var.tags

parameter_group_name = (
var.parameter_group_name == null
Expand Down
5 changes: 5 additions & 0 deletions aws/redis/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,11 @@ variable "size" {
default = "t2.small"
}

variable "tags" {
type = map(string)
default = {}
}

variable "security_group_id" {
type = string
description = "The id of the general security group"
Expand Down

0 comments on commit a7df8a1

Please sign in to comment.