Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
brokedba authored Jan 31, 2024
1 parent 2072fcb commit 49ed138
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions terraform-provider-aws/create-vpc-dynamic/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,12 @@ To consolidate all sg rules combinations in one main map and still call them usi
}
}
# you can set the default for sg_type depending on your vm deployment see example below
variable "sg_type"{
default = "WEB"
}
# DYNAMIC sg rules using FOR_EACH LOOP and local variable
resource "aws_security_group_rule" "terra_sg_rule" {
for_each = local.sg_mapping[var.sg_type]
Expand Down

0 comments on commit 49ed138

Please sign in to comment.