Skip to content

An example demonstrating getting unblocked when removing a reference between two Stacks in the CDK

Notifications You must be signed in to change notification settings

skinny85/cdk-reference-unblocking

Repository files navigation

Unblocking cross-stack CDK references example

This example CDK project is meant to demonstrate how to unblock yourself when attempting to remove a reference between two Stacks when using the Cloud Development Kit.

Often when trying to deploy a change that removes a reference between two CDK Stacks, you run into the dreaded error:

Export cannot be deleted as it is in use by another Stack

This example project demonstrates how to solve that problem by walking through a scenario where a reference is first established, and then subsequently modified -- initially resulting in the above error, and finally successfully by using a trick I call "dummy exports".

This repository uses Yarn as its package manager, so make sure you have it installed before trying the examples.

Start by installing the required dependencies:

$ yarn install

After you've done that, proceed to part 1 to get started!

About

An example demonstrating getting unblocked when removing a reference between two Stacks in the CDK

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published