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

[Bug] cfn-lint throw E3002 for RotationPeriodInDays property in AWS::KMS::Key Resource #3153

Closed
nalakawula opened this issue Apr 22, 2024 · 1 comment

Comments

@nalakawula
Copy link

CloudFormation Lint Version

0.83.6

What operating system are you using?

Ubuntu 22.04

Describe the bug

cfn-lint throw E3002 for RotationPeriodInDays property in AWS::KMS::Key Resource

cfn-lint -I src/cloudformation/main.yml
2024-04-22 11:21:39,527 - cfnlint.runner - INFO - Run scan of template src/cloudformation/main.yml
E3002 Invalid Property Resources/KMSKey/Properties/RotationPeriodInDays
src/cloudformation/main.yml:34:7

Thank you

Expected behavior

RotationPeriodInDays is valid property of AWS::KMS::Key Resource.

Reproduction template

Resources:
  KMSKey:
    Type: AWS::KMS::Key
    Properties:
      Description: KMS key
      EnableKeyRotation: true
      RotationPeriodInDays: 90
      KeyPolicy:
        Version: '2012-10-17'
        Id: my-test-kms-key
        Statement:
          - Sid: Allow direct access to key metadata to the root account
            Effect: Allow
            Principal:
              AWS: !Sub arn:aws:iam::${AWS::AccountId}:root
            Action: kms:*
            Resource: '*'
@kddejong
Copy link
Contributor

Its in automated PR #3149 . You can always run cfn-lint --update-specs until a new release is done (will be today).

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

No branches or pull requests

2 participants