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): reusing StackSynthesizer leads to unsynthesized Stacks #11635

Merged
merged 2 commits into from
Nov 24, 2020

Conversation

rix0rrr
Copy link
Contributor

@rix0rrr rix0rrr commented Nov 23, 2020

If the same StackSynthesizer object is used for multiple stacks,
only the last one is properly synthesized to the cloud assembly.

Ideally, we would have made it so that there is a difference between
the specifying StackSynthesizer object and a "bound" version of
the StackSynthesizer (bound to a Stack).

Unfortunately, we cannot introduce that change without heavy
contortions in order not to break backwards compatibility, so the
simple thing to do right now is to make it blindingly obvious that
"you cannot do that".

Fixes #11528.


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

If the same StackSynthesizer object is used for multiple stacks,
only the last one is properly synthesized to the cloud assembly.

Ideally, we would have made it so that there is a difference between
the specifying `StackSynthesizer` object and a "bound" version of
the `StackSynthesizer` (bound to a `Stack`).

Unfortunately, we cannot introduce that change without heavy
contortions in order not to break backwards compatibility, so the
simple thing to do right now is to make it blindingly obvious that
"you cannot do that".

Fixes #11528.
@rix0rrr rix0rrr requested a review from a team November 23, 2020 16:17
@rix0rrr rix0rrr self-assigned this Nov 23, 2020
@gitpod-io
Copy link

gitpod-io bot commented Nov 23, 2020

@mergify mergify bot added the contribution/core This is a PR that came from AWS. label Nov 23, 2020
@mergify
Copy link
Contributor

mergify bot commented Nov 24, 2020

Thank you for contributing! Your pull request will be updated from master and then merged automatically (do not update manually, and be sure to allow changes to be pushed to your fork).

@aws-cdk-automation
Copy link
Collaborator

AWS CodeBuild CI Report

  • CodeBuild project: AutoBuildProject6AEA49D1-qxepHUsryhcu
  • Commit ID: 3983696
  • Result: SUCCEEDED
  • Build Logs (available for 30 days)

Powered by github-codebuild-logs, available on the AWS Serverless Application Repository

@mergify
Copy link
Contributor

mergify bot commented Nov 24, 2020

Thank you for contributing! Your pull request will be updated from master and then merged automatically (do not update manually, and be sure to allow changes to be pushed to your fork).

@mergify mergify bot merged commit f03c889 into master Nov 24, 2020
@mergify mergify bot deleted the huijbers/stacksynthesizer-error branch November 24, 2020 10:28
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.

[core] Only One Stack per Stacksynthesizer possible?
3 participants