Skip to content

Commit

Permalink
feat: Add explanation about provider inheritance in README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Excoriate committed Apr 14, 2024
1 parent c61b140 commit 7bb9eda
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions infra/terraform/live/_providers/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,3 +69,6 @@ generate "providers" {
contents = join("\n", local.providers_cfg.locals.providers_content)
}
```
This configuration is then utilized in the terragrunt.hcl file to ensure that each child configuration inherits the provider settings, maintaining consistency across all deployments.

It's important to notice that if the provider is defined in this layer (**global**), it's going to be inherited by all the child modules. If you want to **specify a provider that is LOCAL** to a specific module, you should define it in the file `providers.hcl` file of that module, which has exactly the same structure.

0 comments on commit 7bb9eda

Please sign in to comment.