Skip to content

Instantly share code, notes, and snippets.

@jtuz
Created February 21, 2026 01:22
Show Gist options
  • Select an option

  • Save jtuz/f37d9fa609b5f6e658ca06f881ae78c5 to your computer and use it in GitHub Desktop.

Select an option

Save jtuz/f37d9fa609b5f6e658ca06f881ae78c5 to your computer and use it in GitHub Desktop.
AWS Codecommit Last Modified
#!/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