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 planfailsSteps To Reproduce
Project structure
I have
staging/vpc/terragrunt.hcl.and
staging/ec2/terragrunt.hcland
root.hclRun
Error
Expected behavior
Command runs successfully.
Plan is returned for
vpcandec2units.Mocked subnet is the subnet id of the
ec2unit.Nice to haves
Complete Terminal output
Versions
Additional context
Beta Was this translation helpful? Give feedback.
All reactions