Skip to content
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

exempting resource types where the AWS::Serverless transform sets DeletionPolicy but not UpdateReplacePolicy from W3011 #1529

Merged
merged 1 commit into from
May 13, 2020

Conversation

PatMyron
Copy link
Contributor

@PatMyron PatMyron commented May 13, 2020

fixes #1265 because the AWS::Serverless transform won't support UpdateReplacePolicy soon while it's setting DeletionPolicy here:

AWS::Lambda::Version (docs)
AWS::Lambda::LayerVersion (docs)


Will investigate resources the AWS::Serverless transform creates that could fail I3011 after

@codecov

This comment has been minimized.

Comment on lines -254 to +151
'exit_code': 6,
'exit_code': 2,
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

transforms into template that previously violated W3011:

cfn-lint --info test/fixtures/templates/good/transform_serverless_globals.yaml 2>&1 | grep -C 7 'DeletionPolicy'

      "myFunctionVersionee13cf2679": {
        "DeletionPolicy": "Retain",
        "Properties": {
          "FunctionName": {
            "Ref": "myFunction"
          }
        },
        "Type": "AWS::Lambda::Version"
      }

https://github.com/aws-cloudformation/cfn-python-lint/blob/fe0af928a4ab26a6cedfd76564a26c9a4120b14f/src/cfnlint/core.py#L60-L61

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

AWS::Serverless transform creating resources that fail W3011 (DeletionPolicy/UpdateReplacePolicy rule)
2 participants