WIP do not merge: reproduce nested stack generation problem #12
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
❯ while terragrunt stack generate; do :; done
16:16:33.375 INFO Generating stack from ./.terragrunt-stack/non-prod/terragrunt.stack.hcl
16:16:33.376 INFO Generating stack from ./.terragrunt-stack/prod/terragrunt.stack.hcl
16:16:33.376 INFO Processing unit service from ./.terragrunt-stack/non-prod/terragrunt.stack.hcl
16:16:33.376 INFO Processing unit sg_to_db_sg_rule from ./.terragrunt-stack/non-prod/terragrunt.stack.hcl
16:16:33.376 INFO Processing unit db from ./.terragrunt-stack/non-prod/terragrunt.stack.hcl
16:16:33.376 INFO Processing unit asg_sg from ./.terragrunt-stack/non-prod/terragrunt.stack.hcl
16:16:33.376 INFO Generating stack from ./terragrunt.stack.hcl
16:16:33.376 INFO Processing unit db from ./.terragrunt-stack/prod/terragrunt.stack.hcl
16:16:33.377 INFO Processing unit asg_sg from ./.terragrunt-stack/prod/terragrunt.stack.hcl
16:16:33.377 INFO Processing unit sg_to_db_sg_rule from ./.terragrunt-stack/prod/terragrunt.stack.hcl
16:16:33.377 INFO Processing stack prod from ./terragrunt.stack.hcl
16:16:33.377 INFO Processing stack non_prod from ./terragrunt.stack.hcl
16:16:33.376 INFO Processing unit service from ./.terragrunt-stack/prod/terragrunt.stack.hcl
16:16:35.564 INFO Generating stack from ./.terragrunt-stack/non-prod/terragrunt.stack.hcl
16:16:35.565 INFO Generating stack from ./.terragrunt-stack/prod/terragrunt.stack.hcl
16:16:35.565 INFO Processing unit service from ./.terragrunt-stack/non-prod/terragrunt.stack.hcl
16:16:35.565 INFO Processing unit sg_to_db_sg_rule from ./.terragrunt-stack/non-prod/terragrunt.stack.hcl
16:16:35.565 INFO Processing unit db from ./.terragrunt-stack/non-prod/terragrunt.stack.hcl
16:16:35.565 INFO Processing unit asg_sg from ./.terragrunt-stack/non-prod/terragrunt.stack.hcl
16:16:35.566 INFO Generating stack from ./terragrunt.stack.hcl
16:16:35.566 INFO Processing unit db from ./.terragrunt-stack/prod/terragrunt.stack.hcl
16:16:35.566 INFO Processing unit service from ./.terragrunt-stack/prod/terragrunt.stack.hcl
16:16:35.566 INFO Processing stack prod from ./terragrunt.stack.hcl
16:16:35.566 INFO Processing stack non_prod from ./terragrunt.stack.hcl
16:16:35.566 INFO Processing unit sg_to_db_sg_rule from ./.terragrunt-stack/prod/terragrunt.stack.hcl
16:16:35.566 INFO Processing unit asg_sg from ./.terragrunt-stack/prod/terragrunt.stack.hcl
16:16:37.835 INFO Generating stack from ./.terragrunt-stack/non-prod/terragrunt.stack.hcl
16:16:37.836 INFO Generating stack from ./.terragrunt-stack/prod/terragrunt.stack.hcl
16:16:37.836 INFO Processing unit service from ./.terragrunt-stack/non-prod/terragrunt.stack.hcl
16:16:37.836 INFO Processing unit db from ./.terragrunt-stack/non-prod/terragrunt.stack.hcl
16:16:37.836 INFO Processing unit sg_to_db_sg_rule from ./.terragrunt-stack/non-prod/terragrunt.stack.hcl
16:16:37.836 INFO Processing unit asg_sg from ./.terragrunt-stack/non-prod/terragrunt.stack.hcl
16:16:37.837 INFO Generating stack from ./terragrunt.stack.hcl
16:16:37.837 INFO Processing unit db from ./.terragrunt-stack/prod/terragrunt.stack.hcl
16:16:37.837 INFO Processing unit service from ./.terragrunt-stack/prod/terragrunt.stack.hcl
16:16:37.837 INFO Processing stack prod from ./terragrunt.stack.hcl
16:16:37.837 INFO Processing unit sg_to_db_sg_rule from ./.terragrunt-stack/prod/terragrunt.stack.hcl
16:16:37.837 INFO Processing stack non_prod from ./terragrunt.stack.hcl
16:16:37.837 INFO Processing unit asg_sg from ./.terragrunt-stack/prod/terragrunt.stack.hcl
16:16:39.824 ERROR 2 errors occurred:
Validation failed for unit asg_sg at path ./.terragrunt-stack/non-prod/.terragrunt-stack: expected unit to generate with terragrunt.hcl file at root of generated directory.
Validation failed for unit asg_sg at path ./.terragrunt-stack/non-prod/.terragrunt-stack: expected unit to generate with terragrunt.hcl file at root of generated directory.
16:16:39.824 ERROR Unable to determine underlying exit code, so Terragrunt will exit with error code 1