Created
February 21, 2026 01:22
-
-
Save jtuz/f37d9fa609b5f6e658ca06f881ae78c5 to your computer and use it in GitHub Desktop.
AWS Codecommit Last Modified
This file contains hidden or 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
| #!/bin/bash | |
| # Get a list of all repositories in the account | |
| repositories=$(aws codecommit list-repositories --query 'repositories[].repositoryName' --output text) | |
| # echo $repositories | |
| # Loop through each repository and get its details | |
| echo -e "Repository\tDescription\tLast Modified Date" | |
| for repo in $repositories | |
| do | |
| details=$(aws codecommit get-repository --repository-name $repo --query 'repositoryMetadata.[repositoryDescription,lastModifiedDate]' --output text) | |
| echo -e "$repo\t$details" | |
| done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment