This PR allows users to be able to change the default "locals.*" variable to something that is known ahead of time. This is handy when we want to code generate infra stacks that are very similar and we know most of the values ahead of time. Also, filters out non-existent variables on the module source. Fixes https://github.com/chanzuckerberg/fogg/issues/935
Example:
module_source: github.com/chanzuckerberg/cztack//aws-aurora-postgres?ref=main
variables:
- env=var.tags.env
- owner=var.tags.owner
- project
- blah # will be filtered out
Summary
This PR allows users to be able to change the default "locals.*" variable to something that is known ahead of time. This is handy when we want to code generate infra stacks that are very similar and we know most of the values ahead of time. Also, filters out non-existent variables on the module source. Fixes https://github.com/chanzuckerberg/fogg/issues/935
Example:
Would generate:
Test Plan
Say unittests, or list out steps to verify changes.
References
(Optional) Additional links to provide more context.