We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Description:
cfn-lint highlighted an issue where SAM removes UpdateReplacePolicy from an AWS::S3::Bucket resource: aws-cloudformation/cfn-lint#1265 (comment)
cfn-lint
UpdateReplacePolicy
AWS::S3::Bucket
I commented over at #450 (comment) but there has been no response in a few months (it's actually unclear whether this is the same issue).
Steps to reproduce the issue:
Original SAM template:
AWSTemplateFormatVersion: '2010-09-09' Transform: AWS::Serverless-2016-10-31 Resources: Bucket: Type: AWS::S3::Bucket DeletionPolicy: Retain UpdateReplacePolicy: Retain Function: Type: AWS::Serverless::Function Properties: Handler: index.handler Runtime: nodejs12.x Events: ObjectCreated: Type: S3 Properties: Bucket: !Ref Bucket Events: s3:ObjectCreated:*
Observed result:
(just the bucket portion)
AWSTemplateFormatVersion: '2010-09-09' Resources: Bucket: DeletionPolicy: Retain DependsOn: - FunctionObjectCreatedPermission Properties: NotificationConfiguration: LambdaConfigurations: - Event: s3:ObjectCreated:* Function: Fn::GetAtt: - Function - Arn Type: AWS::S3::Bucket
Expected result:
AWSTemplateFormatVersion: '2010-09-09' Resources: Bucket: DeletionPolicy: Retain UpdateReplacePolicy: Retain DependsOn: - FunctionObjectCreatedPermission Properties: NotificationConfiguration: LambdaConfigurations: - Event: s3:ObjectCreated:* Function: Fn::GetAtt: - Function - Arn Type: AWS::S3::Bucket
The text was updated successfully, but these errors were encountered:
Got a repro and its a fairly simple fix.
Sorry, something went wrong.
Closing this issue since it is been released with SAM v1.36.0 and SAM CLI v1.24.0.
You can read more about how resource level attributes are handled in SAM via our updated documentation; https://docs.aws.amazon.com/serverless-application-model/latest/developerguide/sam-specification-resource-attributes.html
Thanks!
No branches or pull requests
Description:
cfn-lint
highlighted an issue where SAM removesUpdateReplacePolicy
from anAWS::S3::Bucket
resource: aws-cloudformation/cfn-lint#1265 (comment)I commented over at #450 (comment) but there has been no response in a few months (it's actually unclear whether this is the same issue).
Steps to reproduce the issue:
Original SAM template:
Observed result:
(just the bucket portion)
Expected result:
(just the bucket portion)
The text was updated successfully, but these errors were encountered: