Closed sheridansmall closed 3 months ago
I have noticed this too - it looks like the specs AWS supply were updated over the last weekend and now include AWS::SecretsManager::ResourcePolicy
- they were missing this when I downloaded the specs on Friday 21st June
I think one / both of these automated PRs will fix the issue
https://github.com/aws-cloudformation/cfn-lint/pull/3313 https://github.com/aws-cloudformation/cfn-lint/pull/3391
Correct. Short term fix is to run cfn-lint --update-specs
but should have a release today with the newest version of the schemas.
That is great to know @kddejong - thanks for your hard work on this 👍
File is back in main https://github.com/aws-cloudformation/cfn-lint/blob/main/src/cfnlint/data/schemas/providers/us_east_1/aws-secretsmanager-resourcepolicy.json
Release PR is coming.
Many thanks it's all working in 1.3.5
Tested with 1.3.6 - all working fine without having to run --update-specs
CloudFormation Lint Version
cfn-lint 1.3.4
What operating system are you using?
Windows, Ubuntu
Describe the bug
When using AWS::SecretsManager::ResourcePolicy cfn-lint incorrectly reports "E3006 Resource type 'AWS::SecretsManager::ResourcePolicy' does not exist in 'us-east-1'".
https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-secretsmanager-resourcepolicy.html makes no mention of any AWS region.
AWS::SecretsManager::ResourcePolicy can exist in other regions.
Expected behavior
I would not expect an error message when using AWS::SecretsManager::ResourcePolicy outside us-east-1 as AWS::SecretsManager::ResourcePolicy can exist in other regions.
Reproduction template