Bootstrap FreeKB - Amazon Web Services (AWS) - Create Cloudwatch Alarm Log Groups using the AWS CLI
Amazon Web Services (AWS) - Create Cloudwatch Alarm Log Groups using the AWS CLI

Updated:   |  Amazon Web Services (AWS) articles

This assumes you have already configured the aws command line tool. If not, check out my article on Getting Started with the AWS CLI.

The aws logs create-log-group command can be used to create a Log Group. 

aws logs create-log-group --log-group my-log-group

 

Then the aws logs describe-log-groups command can be used to show that the Log Group has been created.

~]$ aws logs describe-log-groups --query 'logGroups[?logGroupName==`my-log-group`]'
[
    {
        "logGroupName": "my-log-group",
        "creationTime": 1696902696435,
        "metricFilterCount": 0,
        "arn": "arn:aws:logs:us-east-1:123456789012:log-group:my-log-group:*",
        "storedBytes": 0
    }
]

 




Did you find this article helpful?

If so, consider buying me a coffee over at Buy Me A Coffee



Comments


Add a Comment


Please enter 07cdc5 in the box below so that we can be sure you are a human.