Relative Content

Tag Archive for terraformterragrunt

Terragrunt – reuse modules with different parameters

Is it possible to define a module in a terragrunt.hcl file and call it twice with different input blocks?
For my use case, I want to create 2 separate Sagemaker Models, Endpoints and Endpoint Configurations.
I would like to have 1 module that creates 1 model, endpoitn and endpoint configuration.
What is the best way to perform this task?

Terragrunt – avoid code duplicity for multiple environments

I am coming from application development so my thought process is bit different. what normally happens with application development is, you have single code base. and based on your branching strategy your pipeline deploys it to multiple environment.

terragrunt – Unable to evaluate directory symlink

I am trying to use terrgrunt with terraform. this is the dumb down version of what I am trying to achieve. However, basically. I want to store all the environment specific variables in terragrunt.hcl file and my main logic (Which calls to another module) in a separate main.tf.

Referencing external dependency in terragrunt

I have inherited a code base which deploys terraform modules via terragrunt. I need to define the dependencies between them so that I can run the whole stack at one, and all the modules will be deployed in order.
In order to achieve this I have defined 3 sets of resources that need to be applied. I will cd into it and run terragrunt -run-all on them in sequence.