How to create an AWS CloudWatch Log Group?TypeScript
To create an AWS CloudWatch Log Group, we can use the
LogGroupresource from the
aws.cloudwatchpackage in Pulumi.
Below is a sample program that creates a CloudWatch Log Group named "my-log-group" with a retention period of 14 days. The retentionInDays property sets the number of days you want to retain log events in the specified log group.
You can check the documentation for this resource here.