From 49ed13896bd45dcc1c8e0965b303ed44ff44aaae Mon Sep 17 00:00:00 2001 From: BrokeDBA Date: Wed, 31 Jan 2024 13:55:53 -0500 Subject: [PATCH] Update README.md --- terraform-provider-aws/create-vpc-dynamic/README.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/terraform-provider-aws/create-vpc-dynamic/README.md b/terraform-provider-aws/create-vpc-dynamic/README.md index 9430167..2921e64 100644 --- a/terraform-provider-aws/create-vpc-dynamic/README.md +++ b/terraform-provider-aws/create-vpc-dynamic/README.md @@ -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]