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 for updating local modules when using Terragrunt #2145

Open
Taiki130 opened this issue Dec 24, 2024 · 2 comments
Open

Support for updating local modules when using Terragrunt #2145

Taiki130 opened this issue Dec 24, 2024 · 2 comments
Labels
enhancement New feature or request

Comments

@Taiki130
Copy link
Contributor

Taiki130 commented Dec 24, 2024

Feature Overview

Currently, the system supports updating local modules when using Terraform, but it does not support updating local modules when using Terragrunt.

Why is the feature needed?

When updating local modules in Terragrunt, the changes are not detected, and the plan is not triggered.

Example Code

No response

Note

Alternatively, enabling the ability to configure dependencies on directories or files related to the target could provide a viable alternative solution.

tfaction-root.yaml

  - working_directory: foo/bar
    target: foo/bar
    extra_dependencies:
      - modules
@Taiki130 Taiki130 added the enhancement New feature or request label Dec 24, 2024
@Taiki130 Taiki130 changed the title Support for Updating Local Modules in Terragrunt Support for Updating Local Modules when using Terragrunt Dec 24, 2024
@Taiki130 Taiki130 changed the title Support for Updating Local Modules when using Terragrunt Support for updating local modules when using Terragrunt Dec 24, 2024
@suzuki-shunsuke
Copy link
Owner

Thank you for reporting the issue.
I'll try to reproduce the issue.

Alternatively, enabling the ability to configure dependencies on directories or files related to the target could provide a viable alternative solution.

I think this issue is related.

@suzuki-shunsuke
Copy link
Owner

I see.

tfaction uses terraform-config-inspect to detect dependencies.

https://suzuki-shunsuke.github.io/tfaction/docs/feature/local-path-module/

But this tool can't resolve dependencies defined by Terragrunt.

https://github.com/suzuki-shunsuke/test-tfaction/blob/4de137787a1a242c27b20417908dda225a131c9c/terragrunt/terragrunt.hcl#L1-L3

terragrunt.hcl

terraform {
  source = "../module"
}
terraform-config-inspect --json terragrunt

Output:

{
  "path": "terragrunt",
  "variables": {},
  "outputs": {},
  "required_providers": {},
  "managed_resources": {},
  "data_resources": {},
  "module_calls": {}
}

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

No branches or pull requests

2 participants