| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| # The goal: create a list of maps of subnet mappings so we don't have to statically hard-code them in aws_lb | |
| # https://www.terraform.io/docs/providers/aws/r/lb.html#subnet_mapping | |
| locals { | |
| # These represent dynamic data we fetch from somewhere, such as subnet IDs and EIPs from a VPC module | |
| subnet_ids = ["subnet-1", "subnet-2", "subnet-3"] | |
| eips = ["eip-1", "eip-2", "eip-3"] | |
| } | |
| # Here's the hack! The null_resource has a map called triggers that we can set to arbitrary values. | |
| # We can also use count to create a list of null_resources. By accessing the triggers map inside of |
| Back | FazBrowse Home | New Git URL |