AWS::Logs::LogGroup should be able to accept a KMSKeyId parameter to turn on log group encryption via a CMK.
When KMSKeyId is provided, the Log Group should have that Key ID associated with it. The result should be the same as providing the kmsKeyId parameter in the API call, or using AssociateKmsKey afterwards.
Create a stack with an AWS::KMS::Key and a AWS::Logs::LogGroup with the KMSKeyId option set to !Ref Key. Upon creation, DescribeLogGroups should show the associated kmsKeyId parameter equal to the Ref of the AWS::KMS::Key.
API for CreateLogGroup https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_CreateLogGroup.html
Use the categories as displayed in the AWS Management Console (simplified):
Did anybody know the workaround how to associate a Log Group with a CMK in cloudformation?
@ThomasSteinbach I believe the only work around now would be use to a lambda custom resource.
AWS::Logs::LogGroup is open source: https://github.com/aws-cloudformation/aws-cloudformation-resource-providers-logs/tree/master/aws-logs-loggroup.
You are welcome to contribute for this.
AWS::Logs::LogGroup is open source: https://github.com/aws-cloudformation/aws-cloudformation-resource-providers-logs/tree/master/aws-logs-loggroup.
You are welcome to contribute for this.
Yes! The door is wide open for anyone to be the first public contributor to an AWS Resource here. 鉂わ笍
It's launched: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-logs-loggroup.html#cfn-logs-loggroup-kmskeyid
Most helpful comment
It's launched: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-logs-loggroup.html#cfn-logs-loggroup-kmskeyid