Skip to content

Latest commit

 

History

History
52 lines (34 loc) · 1.53 KB

File metadata and controls

52 lines (34 loc) · 1.53 KB

CodeCommit: Create a repository and manage code

Create a CodeCommit repository, add files, branch, compare changes, and retrieve metadata using the AWS CLI.

Source

https://docs.aws.amazon.com/codecommit/latest/userguide/getting-started-cc.html

Use case

  • ID: codecommit/getting-started
  • Phase: create
  • Complexity: beginner
  • Core actions: codecommit:CreateRepository, codecommit:PutFile, codecommit:CreateBranch

What it does

  1. Creates a CodeCommit repository
  2. Adds a file using fileb://
  3. Retrieves the file metadata
  4. Creates a feature branch
  5. Adds a file to the feature branch
  6. Compares branches with get-differences
  7. Gets repository metadata

Running

bash aws-codecommit-gs.sh

Resources created

  • CodeCommit repository

No persistent resources remain after cleanup. The script prompts you to delete the repository when it finishes.

Estimated time

  • Run: ~11 seconds

Cost

CodeCommit is free for up to 5 active users per month (unlimited repositories). No charges for this tutorial under the free tier.

Related docs