E3002 Invalid Property Resources/xxx/Properties/FilterPolicyScope. Did you mean FilterPolicy?
See original GitHub issueCloudFormation Lint Version
cfn-lint 0.72.0
What operating system are you using?
Mac (Intel)
Describe the bug
cfn-lint
complains about FilterPolicyScope
:
E3002 Invalid Property Resources/AlertSubscription/Properties/FilterPolicyScope. Did you mean FilterPolicy?`
It seems it’s also not yet here: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-sns-subscription.html
But it’s here: https://aws.amazon.com/blogs/compute/introducing-payload-based-message-filtering-for-amazon-sns/
It also works when I try to deploy my subscription with a FilterPolicyScope
Expected behavior
No complains
Reproduction template
AlertSubscription:
Type: "AWS::SNS::Subscription"
Properties:
Endpoint: "xxx"
Protocol: "email"
FilterPolicyScope: MessageBody
FilterPolicy: ...
Issue Analytics
- State:
- Created 10 months ago
- Reactions:1
- Comments:6 (3 by maintainers)
Top Results From Across the Web
No results found
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
From my experience setting
FilterPolicyScope: MessageBody
on the subscription will cause the created subscription to have the filter set to the message body. here is an example usage from the AWS SNS exampleshttps://github.com/aws-cloudformation/cfn-lint/releases/tag/v0.72.5