I've noticed an issue where auto-init always runs even when it shouldn't need to. It seems to be caused by unused fields in my backend config not being present in the backend config block.
which then allows me run terragrunt commands without auto-init occurring. However, at the point when I do re-init the project I get the following error:
│ Error: Unsupported argument
│
│ on backend.tf line 6, in terraform:
│ 6: assume_role = []
│
│ An argument named "assume_role" is not expected here. Did you mean to
│ define a block of type "assume_role"?
In case it helps anyone, my current workaround is removing the remote_state block altogether and putting my entire backend config into a generate block.
Terragrunt: 0.38.4 (using Alicloud OSS remote backend)
Hello,
Thanks for all the great work on Terragrunt!
I've noticed an issue where auto-init always runs even when it shouldn't need to. It seems to be caused by unused fields in my backend config not being present in the
backend
config block.My backend config looks like this:
If I run a
terragrunt init
followed by e.g. aterragrunt plan
I can see this logged just before the unneeded auto-init runs:(nb the REDACTED fields are the same in the "from" and "to" sections.)
If I populate all the unused fields in my backend config then the problem temporarily goes away:
which then allows me run
terragrunt
commands without auto-init occurring. However, at the point when I do re-init the project I get the following error: