-
-
Notifications
You must be signed in to change notification settings - Fork 42
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
Comments
Thank you for reporting the issue.
I think this issue is related. |
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. terragrunt.hcl terraform {
source = "../module"
} terraform-config-inspect --json terragrunt Output: {
"path": "terragrunt",
"variables": {},
"outputs": {},
"required_providers": {},
"managed_resources": {},
"data_resources": {},
"module_calls": {}
} |
@suzuki-shunsuke Thank you for your investigation. I found that Terragrunt provides a useful command called terragrunt render-json --terragrunt-json-out /dev/stdout | jq
{
"dependencies": null,
"download_dir": "",
"generate": {},
"iam_assume_role_duration": null,
"iam_assume_role_session_name": "",
"iam_role": "",
"iam_web_identity_token": "",
"inputs": null,
"locals": null,
"retry_max_attempts": null,
"retry_sleep_interval_sec": null,
"retryable_errors": null,
"terraform": {
"after_hook": {},
"before_hook": {},
"copy_terraform_lock_file": null,
"error_hook": {},
"extra_arguments": {},
"include_in_copy": null,
"source": "../module"
},
"terraform_binary": "",
"terraform_version_constraint": "",
"terragrunt_version_constraint": ""
}
Since the JSON output includes the |
Cool. Thank you for your suggestion! |
Could you try v1.15.0-0? |
@suzuki-shunsuke I tried with v1.15.0-0 and found an adjustment was necessary:
After making this adjustment, the detection of local module changes worked as expected! |
Thank you for your feedback. Interesting. Anyway, I think v1.15.0-0 works well, so I'm going to release v1.15.0. |
@suzuki-shunsuke I’ll take some time to think about whether there’s a better way to handle cases like this. Thanks for your work on this! |
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
The text was updated successfully, but these errors were encountered: