AWS::Logs::LogGroupThe AWS::Logs::LogGroup resource specifies a log group. A log group defines common properties for log streams, such as their retention and access control rules. Each log stream must belong to one log group. You can create up to 1,000,000 log groups per Region per account. You must use the following guidelines when naming a log group: + Log group names must be unique within a Region for an AWS account. + Log group names can be between 1 and 512 characters long. + Log group names ...
9 configurable properties. Click a row to see details.
| Property | Type | Flags |
|---|---|---|
DataProtectionPolicy | object | |
DeletionProtectionEnabled | boolean | |
FieldIndexPolicies | Array<object> | |
KmsKeyId | string | |
LogGroupClass | string | |
LogGroupName | string | Create-only |
ResourcePolicyDocument | object | |
RetentionInDays | integer | |
Tags | Array<Tag> |
Values returned after the resource is created. Access these with Fn::GetAtt.
| Attribute | Type | Description |
|---|---|---|
Arn | string | - |
A minimal template with required properties and common optional ones.
AWSTemplateFormatVersion: "2010-09-09"
Description: Sample template for AWS::Logs::LogGroup
Resources:
MyResource:
Type: AWS::Logs::LogGroup
Properties:
Tags:
- Key: Environment
Value: ProductionPermissions CloudFormation needs in your IAM role to manage this resource.
logs:DescribeLogGroupslogs:CreateLogGrouplogs:PutRetentionPolicylogs:TagResourcelogs:GetDataProtectionPolicylogs:PutDataProtectionPolicylogs:CreateLogDeliverys3:REST.PUT.OBJECTlogs:DescribeLogGroupslogs:ListTagsForResourcelogs:GetDataProtectionPolicylogs:DescribeIndexPolicieslogs:DescribeResourcePolicieslogs:DescribeLogGroupslogs:AssociateKmsKeylogs:DisassociateKmsKeylogs:PutRetentionPolicylogs:DeleteRetentionPolicylogs:TagResourcelogs:UntagResourcelogs:ListTagsForResourcelogs:DescribeLogGroupslogs:DeleteLogGrouplogs:DeleteDataProtectionPolicylogs:DescribeLogGroupslogs:ListTagsForResourceOur bi-weekly newsletter teaches hands-on AWS fundamentals. No certification fluff - just practical knowledge.
Subscribe to NewsletterLogGroupNameThese properties cannot be changed after the resource is created. Updating them triggers a replacement.
LogGroupName