Describe the bug
If a Synthesizer is used and the an Asset is shared between two Stacks on the same App, one of the Stacks will have a published asset to reference while the other Stack will not.
Expected Behavior
If a Synthesizer is used and the prefixes are different, the Assets should be able accessible to both Stacks.
Current Behavior
One Stack will be able to access the asset, while the other will return a Resource handler returned message: "Error occurred while GetObject. S3 Error Code: NoSuchKey. S3 Error Message: The specified key does not exist. due to a missing asset.
Reproduction Steps
- Define a
bin or app.py file that creates two stacks
- Define a
DefaultStackSynthesizer
- Define a
Lambda Function resource with a logRetention prop
Possible Solution
Since this is unique to version 2.8X.X, the Asset removal might need to be reviewed
Additional Information/Context
No response
CDK CLI Version
2.81.0
Framework Version
No response
Node.js Version
18.16.0
OS
macOS 12.6.6
Language
Typescript, Python, .NET, Java, Go
Language Version
5.0.4
Other information
No response
Describe the bug
If a Synthesizer is used and the an Asset is shared between two Stacks on the same App, one of the Stacks will have a published asset to reference while the other Stack will not.
Expected Behavior
If a Synthesizer is used and the prefixes are different, the Assets should be able accessible to both Stacks.
Current Behavior
One Stack will be able to access the asset, while the other will return a
Resource handler returned message: "Error occurred while GetObject. S3 Error Code: NoSuchKey. S3 Error Message: The specified key does not exist.due to a missing asset.Reproduction Steps
binorapp.pyfile that creates two stacksDefaultStackSynthesizerLambda Functionresource with alogRetentionpropPossible Solution
Since this is unique to version 2.8X.X, the Asset removal might need to be reviewed
Additional Information/Context
No response
CDK CLI Version
2.81.0
Framework Version
No response
Node.js Version
18.16.0
OS
macOS 12.6.6
Language
Typescript, Python, .NET, Java, Go
Language Version
5.0.4
Other information
No response