First, install Yeoman and generator-terragrunt-terraform using npm (we assume you have pre-installed node.js).
npm install -g yo
npm install -g generator-terragrunt-terraform
To generate a new Terragrunt project:
In the directory you want to initialize the project:
yo terragrunt-terraform
To generate a new Terragrunt module:
In the root directory of the Terragrunt project: (it is assumed that the project was generated using this generator):
yo terragrunt-terraform:module {{ module_name }}
In addition, you can specify the dependencies of the module using comma-separated module names:
yo terragrunt-terraform:module {{ module_name }} --moduleDependencies infrastructure,eks
MIT © Hung Luong