Skip to content

Instantly share code, notes, and snippets.

@adamfortuno
Created January 15, 2020 16:17
Show Gist options
  • Save adamfortuno/d8d8768a8bda53b4e7eb620b64c15bab to your computer and use it in GitHub Desktop.
Save adamfortuno/d8d8768a8bda53b4e7eb620b64c15bab to your computer and use it in GitHub Desktop.
## Retrieve a list of log groups
aws logs describe-log-groups --profile development --region us-east-2
## Retrieve a list of log groups matching a specific name
aws logs describe-log-groups --log-group-name /aws/lambda/sandbox --profile development --region us-west-2
## Update a specific log group to a given retention period
aws logs put-retention-policy --log-group-name /aws/lambda/decoNetworkChild --retention-in-days 5 --region us-east-2 --profile development
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment