Create a CodeCommit repository, add files, branch, compare changes, and retrieve metadata using the AWS CLI.
https://docs.aws.amazon.com/codecommit/latest/userguide/getting-started-cc.html
- ID: codecommit/getting-started
- Phase: create
- Complexity: beginner
- Core actions: codecommit:CreateRepository, codecommit:PutFile, codecommit:CreateBranch
- Creates a CodeCommit repository
- Adds a file using fileb://
- Retrieves the file metadata
- Creates a feature branch
- Adds a file to the feature branch
- Compares branches with get-differences
- Gets repository metadata
bash aws-codecommit-gs.sh- CodeCommit repository
No persistent resources remain after cleanup. The script prompts you to delete the repository when it finishes.
- Run: ~11 seconds
CodeCommit is free for up to 5 active users per month (unlimited repositories). No charges for this tutorial under the free tier.