Terragrunt plan all with mock_outputs fails #4869
Replies: 1 comment
-
Hey @rafik-bahri I believe this is you, right? Could we have a note on that question that this is being answered here so that there's a single source of truth for this? The root cause of the error that you're getting is from the AWS provider, because you're trying to create a security group, and the data source is looking up the subnet with a mocked value. The AWS provider doesn't know that you're mocking the ID of the subnet, so you need to either disable creation of the security group, or use a different module that doesn't attempt to use that data source (or provision the VPC first). |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Describe the bug
Using an example from the docs, with
mock_outputs
, theterragrunt run --all plan
failsSteps To Reproduce
Project structure
I have
staging/vpc/terragrunt.hcl
.and
staging/ec2/terragrunt.hcl
and
root.hcl
Run
Error
Expected behavior
Command runs successfully.
Plan is returned for
vpc
andec2
units.Mocked subnet is the subnet id of the
ec2
unit.Nice to haves
Complete Terminal output
Versions
Additional context
Beta Was this translation helpful? Give feedback.
All reactions