Skip to content
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

Deploy failed due to stacks circular dependency #13

Closed
wangzhihao opened this issue Mar 20, 2020 · 2 comments
Closed

Deploy failed due to stacks circular dependency #13

wangzhihao opened this issue Mar 20, 2020 · 2 comments

Comments

@wangzhihao
Copy link
Collaborator

wangzhihao commented Mar 20, 2020

When I update the INFRA_STACK's VPC. The cdk deploy failed. It reports an export name in INFRA_STACK is dependent by JOB_STACK, so INFRA_STACK can't be updated unless JOB_STACK is updated.

However, CDK will also figure out JOB_STACK depends on INFRA_STACK, and thus a circular dependency exists.

This issue is an open issue which recorded here: aws/aws-cdk#3414

It can be harmful to us. Since we might have hundreds of JOB_STACKS in production which depend on one INFRA_STACK. If the updates to INFRA_STACK cause all JOB_STACKS fail to update. It could be a disaster.

@wangzhihao
Copy link
Collaborator Author

Another example is the security group ElasticMapReduce-Master-Private and ElasticMapReduce-Slave-Private are circular dependent, which will cause cloudformation unable to delete the vpc resource.

@wangzhihao
Copy link
Collaborator Author

Duplicated with #21

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant