Skip to content
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

Support running multiple modules #407

Open
salemgolemugoo opened this issue Nov 18, 2024 · 2 comments
Open

Support running multiple modules #407

salemgolemugoo opened this issue Nov 18, 2024 · 2 comments

Comments

@salemgolemugoo
Copy link

Would be nice to have a feature to run multiple modules at once https://terragrunt.gruntwork.io/docs/features/execute-terraform-commands-on-multiple-modules-at-once/

@corrieriluca
Copy link
Member

What you mean is having the possibility to run a terragrunt run-all ... command?

Currently you can create one TerraformLayer for each of your module, the only downside is that the execution order of plan & apply commands will not respect Terragrunt dependencies between your modules.

Respecting rules such as "Layer A must be planned/applied before Layer B" is in our roadmap.

@salemgolemugoo
Copy link
Author

salemgolemugoo commented Nov 18, 2024

Yes, exactly. I would like to associate a TerraformLayer with the whole environment live/dev for the current structure:

├── live
│   ├── common.hcl
│   ├── dev
│   │   ├── account.hcl
│   │   ├── environment.hcl
│   │   └── us-east-1
│   │       ├── eks
│   │       │   ├── apps
│   │       │   └── cluster
│   │       │       └── terragrunt.hcl
│   │       ├── network
│   │       │   └── terragrunt.hcl
│   │       ├── region.hcl
│   │       └── route53
│   │           └── terragrunt.hcl

terragrunt run-all apply allows me to do that.
I see couple of solutions here:

  1. Allow user to customise arguments to the running binary terraform/terragrunt/opentofu
  2. Create a simple utility which is generating TerraformLayer respecting the order of the dependencies and your unreleased feature
  3. Add support for run-all

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants