-
-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to inherit parent terragrunt.hcl file's inputs block #1011
Comments
You can read more about the inheritance properties of terragrunt here: https://terragrunt.gruntwork.io/use-cases/keep-your-remote-state-configuration-dry/#filling-in-remote-state-settings-with-terragrunt |
Thanks for the prompt response! Let's say my child
Is there a way to replace Also, side question: I can't seem to use |
Unfortunately, you can't reference other variables in other config yet. See #814 for the thread on this topic. As a workaround, you will have to do the merge in terraform. E.g you might add a variable
Terragrunt is not terraform code, so it does not support all the resources and data sources. I am currently working on reference docs to make it easier to discover all the supported features of terragrunt configuration, but in the meantime, you will have to go through the feature list in the doc site to find what you need. For this use case, see this section. |
I wrote up an RFC that introduces |
Just updating one of the links to point to the latest guide on the webpage. |
In my top-level parent
terragrunt.hcl
, I have the following block. Taken directly from the terragrunt example repo:How can I inherit
env
,region
, andaws_profile
in my childterragrunt.hcl
file and use them as variables?The text was updated successfully, but these errors were encountered: