Aws-cdk: Create/deploy child stack without deploying dependencies

Created on 11 Feb 2020  路  1Comment  路  Source: aws/aws-cdk

:question: General Issue

I have a stack, say, app-stack, that depends on another stack, say, core-stack, which is already deployed by another team. I need to reference the core-stack in app-stack to add managed policies in app-stack to group created in core-stack.
If I use app-stack.addDependency(core-stack), core-stack's contents will also be listed for deployment which is not needed.

The Question

How can we deploy only child stack?

Environment

  • CDK CLI Version:
  • Module Version:
  • OS:
  • Language:

Other information

@aws-cdcore guidance needs-triage

Most helpful comment

You can use cdk deploy --exclusively is you wish to deploy only a stack without it's deps.

>All comments

You can use cdk deploy --exclusively is you wish to deploy only a stack without it's deps.

Was this page helpful?
0 / 5 - 0 ratings