-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Closed
Labels
area/resource/layer-versioncontributors/good-first-issueGood first issue for a contributorGood first issue for a contributormaintainer/need-responsetype/bug
Description
Description:
When creating a AWS::Serverless::LayerVersion and using a combination of S3 Location Object and !Ref for the ContentUri the generated hash for the logical Id don't change.
Template in use:
HelloWorldLayer:
Type: "AWS::Serverless::LayerVersion"
Properties:
LayerName: hello-world
Description: Simple Hello World Layer
ContentUri:
Bucket: !Ref ArtifactBucket
Key: !Ref ArtifactKey
CompatibleRuntimes:
- python2.7
- python3.6
- python3.7
LicenseInfo: 'Available under the MIT-0 license.'
RetentionPolicy: Retain
Steps to reproduce the issue:
- Deploy a LayerVersion using the template snippet above.
- Update value for template parameter ArtifactKey
- Redeploy the LayerVersion
Observed result:
Same logical Id generated and the old LayerVersion gets deleted.
Expected result:
A new logical Id is generated and old LayerVersion is preserved.
Metadata
Metadata
Assignees
Labels
area/resource/layer-versioncontributors/good-first-issueGood first issue for a contributorGood first issue for a contributormaintainer/need-responsetype/bug