Created
January 15, 2020 16:17
-
-
Save adamfortuno/d8d8768a8bda53b4e7eb620b64c15bab to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## 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