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(deadline): VersionQuery cross-stack issue #306

Merged
merged 1 commit into from
Feb 17, 2021

Conversation

kozlove-aws
Copy link
Contributor

Problem

The VersionQuery RFDK construct abuses the CloudFormation resource model.
When we are referencing the VersionQuery from another stack, the values in stack outputs are not allowed to change.
This becomes a problem when new version released and was not used specific version.

Solution

To solve this problem in short-term perspective we add a synthesis-time validation check to ensure consumers of a VersionQuery are in the same stack. This would mitigate the risk of customers using them cross-stack and guide them towards one VersionQuery instance per stack.

Testing

Were created unit tests and validated that error throwing when used VersionQuery from different stack.


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

@horsmand horsmand added the contribution/core This is a PR that came from AWS. label Feb 5, 2021
Copy link
Contributor

@jericht jericht left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@jericht jericht merged commit e6bb60d into mainline Feb 17, 2021
@jericht jericht deleted the versionquery_stack_fix branch February 17, 2021 23:37
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.

4 participants