vincenthsh
vincenthsh
# Multi Module components I'm adopting existing Terraform IaC for which Fogg will take over all boilerplate, but in my use-case there are multiple modules per component. This PR includes...
I'm able to define additional_providers for the AWS provider: ```yaml # omitting defaults with default aws provider config envs: my-env: providers: aws: additional_providers: replica: region: us-east-2 ``` which generates `fogg.tf`...
[Example Implementation writing a `foo = {}` assignment](https://github.com/vincenthsh/fogg/blob/67efbc61634ee954217b822457d3977c56eeafb9/util/template.go#L105-L136) [Example Implementation writing a `provider "foo" {}` block](https://github.com/vincenthsh/fogg/blob/67efbc61634ee954217b822457d3977c56eeafb9/util/template.go#L66-L103) Usage in go templates: ``` terraform { required_version = "={{ .TerraformVersion }}" {{ template...
just hit this bug (related to a feature I added): https://github.com/chanzuckerberg/fogg/blob/b1a9415d604f8a5be7b43f96d8c8b1b65aed5084/apply/apply.go#L576-L586 if `component.Variables` contains non-existing module variables, they aren't filtered out - the generated module invocation is invalid. For some...
`applyEnv` runs before `applyModules`. https://github.com/chanzuckerberg/fogg/blob/b1a9415d604f8a5be7b43f96d8c8b1b65aed5084/apply/apply.go#L92-L95 solution: move `applyModules` before `applyEnvs` only hit this issue in CI