Open konokenj opened 1 year ago
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.
I think we have to keep S3 object path of the asset and product version name that once deployed. Or we have to use snapshot file that written to disk also in currentVersion()
. Further investigation is needed.
Please let me know if you have a good idea.
Hey @konokenj we (Service Catalog) will add an item to our backlog to investigate and hopefully fix this!
Any updates?
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