Skip to content

Commit

Permalink
feat: added sg description
Browse files Browse the repository at this point in the history
  • Loading branch information
anmolnagpal committed Jun 12, 2023
1 parent 54c817a commit 3105e30
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion _example/redis/example.tf
Expand Up @@ -68,7 +68,7 @@ module "redis" {
multi_az_enabled = false
num_cache_clusters = 1
replicas_per_node_group = 1
retention_in_days = 1
retention_in_days = 0
snapshot_retention_limit = 7

log_delivery_configuration = [
Expand Down
2 changes: 1 addition & 1 deletion main.tf
Expand Up @@ -42,7 +42,7 @@ data "aws_security_group" "existing" {
resource "aws_security_group_rule" "egress" {
count = (var.enable_security_group == true && length(var.sg_ids) < 1 && var.is_external == false && var.egress_rule == true) ? 1 : 0

description = "Description of the egress rule."
description = var.sg_egress_description
type = "egress"
from_port = 0
to_port = 65535
Expand Down
5 changes: 5 additions & 0 deletions variables.tf
Expand Up @@ -358,6 +358,11 @@ variable "egress_rule" {
default = true
description = "Enable to create egress rule"
}
variable "sg_egress_description" {
type = string
default = ""
description = "Description of the egress rule."
}

variable "is_external" {
type = bool
Expand Down

0 comments on commit 3105e30

Please sign in to comment.