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

fix(core): move mountable's asset to scope of target #369

Merged
merged 1 commit into from
Mar 31, 2021

Conversation

ddneilson
Copy link
Contributor

We're unable to update the mountable's scripts without a full tear-down of all consuming stacks.
This moves the assets to the target's stack instead of the Mountable's stack to avoid exports in
cross-stack usage.

BREAKING CHANGE: Stacks set up like our examples will see an error regarding being unable to
delete an export in use when deploying a stack update. To bypass, use cdk deploy's -e option
to deploy each stack upstream of the Mountable's stack before updating the Mountable's stack. e.g.

  • cdk deploy -e ComputeTier; cdk deploy -e ServiceTier; cdk deploy -e StorageTier

Fixes: #368


By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license

We're unable to update the mountable's scripts without a full tear-down of all consuming stacks.
This moves the assets to the target's stack instead of the Mountable's stack to avoid exports in
cross-stack usage.

BREAKING CHANGE: Stacks set up like our examples will see an error regarding being unable to
 delete an export in use when deploying a stack update. To bypass, use cdk deploy's -e option
 to deploy each stack upstream of the Mountable's stack before updating the Mountable's stack. e.g.
- cdk deploy -e ComputeTier; cdk deploy -e ServiceTier; cdk deploy -e StorageTier
@jusiskin jusiskin added the contribution/core This is a PR that came from AWS. label Mar 30, 2021
@ddneilson ddneilson requested a review from jusiskin March 31, 2021 16:44
@jusiskin jusiskin changed the title fix(core): Move mountable's asset to scope of target fix(core): move mountable's asset to scope of target Mar 31, 2021
@ddneilson ddneilson merged commit cb16918 into aws:mainline Mar 31, 2021
@ddneilson ddneilson deleted the fix_mountables_asset_scope branch April 1, 2021 13:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
contribution/core This is a PR that came from AWS.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Cannot update scripts related to the Mountable* classes
3 participants