-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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
(servicecatalog): ProductStackHistory changes last product version ID #24561
Comments
Awesome details!!! Thank you Kenji san! Are you interested to submit your PR for this? |
Yes, but I haven't come up with a good solution yet. |
Hey @konokenj we (Service Catalog) will add an item to our backlog to investigate and hopefully fix this! |
Any updates? |
I've run into the same issue and may have identified the cause: the way the asset hash for the generated product template differs between the current version (product stack synthesized in memory and hashed) and snapshot versions (using FileSystem.fingerprint on the template written to disk). The moment you add a new version, for latest version will be created as a snapshot version, the asset hash changes (although it's essentially the same template), which in turn results in a different template URL. I submitted a PR to fix this, but as this is my first contribution I've haven't been able to update the integration tests. Maybe someone could help me with this? |
Describe the bug
ProductStackHistory
is expected to keep older product versions as-is for consistency. But currently, the ID of last deployed product version changes by adding new version.This becomes a blocker for users of Account Factory Customization (AFC) in AWS Control Tower because users may lost product version id that is used by AFC blueprint.
Expected Behavior
Product version IDs should be immutable when adding a new version with
currentVersionLocked: true
.Current Behavior
The ID of last deployed product version changes by adding new version.
Reproduction Steps
Deploy v1
Deploy v2 with no changes in ProductStack
cdk diff
Result of deployment
Deploy v3 with changes in ProductStack
cdk diff
Result of deployment
Possible Solution
No response
Additional Information/Context
No response
CDK CLI Version
2.68.0 (build 25fda51)
Framework Version
2.68.0
Node.js Version
v18.13.0
OS
macOS Monterey 12.6.3
Language
Typescript
Language Version
4.9.5
Other information
No response
The text was updated successfully, but these errors were encountered: