KmsKeyId not valid property for AWS::Logs::LogGroup
See original GitHub issuecfn-lint version: (cfn-lint --version
)
0.39.0
Description of issue.
CloudWatchKMS:
Type: AWS::KMS::Key
Properties:
Enabled: true
EnableKeyRotation: true
KeyPolicy:
Version: '2012-10-17'
Statement:
- Sid: Enable IAM User Permissions
Effect: Allow
Principal:
AWS: !Sub arn:${AWS::Partition}:iam::${AWS::AccountId}:root
Action: kms:*
Resource: '*'
- Sid: Allow Cloudwatch Access
Effect: Allow
Principal:
Service: logs.region.amazonaws.com
Action:
- kms:Encrypt*
- kms:Decrypt*
- kms:ReEncrypt*
- kms:GenerateDataKey*
- kms:Describe*
Resource: '*'
MessagesLogCWGroup:
Type: AWS::Logs::LogGroup
Properties:
KmsKeyId: !GetAtt CloudWatchKMS.Arn
LogGroupName: messages
RetentionInDays: 30
E3002 Invalid Property Resources/MessagesLogCWGroup/Properties/KmsKeyId template.yaml:627:7
Issue Analytics
- State:
- Created 3 years ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
AWS::KMS::Key - AWS CloudFormation - AWS Documentation
This prevents you from accidentally deleting a KMS key by changing an immutable property value. Select only one valid value. For symmetric encryption...
Read more >modify-ebs-default-kms-key-id - Amazon AWS
Amazon Web Services authenticates the KMS key asynchronously. Therefore, if you specify an ID, alias, or ARN that is not valid, the action...
Read more >
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
Just run
cfn-lint --update-specs
and then runcfn-lint --template template.yaml --regions us-gov-west-1
Thank you. I appreciate you following up.