AWS CodeCommit | Using AWS CodeCommit Flashcards

1
Q

How does AWS CodeCommit compare to a versioned S3 bucket?

Using AWS CodeCommit

AWS CodeCommit | Developer Tools

A

AWS CodeCommit is designed for collaborative software development. It manages batches of changes across multiple files, offers parallel branching, and includes version differencing (“diffing”). In comparison, Amazon S3 versioning supports recovering past versions of individual files but doesn’t support tracking batched changes that span multiple files or other features needed for collaborative software development.

What is Git? Git is an open-source distributed version control system. To work with AWS CodeCommit repositories, you use the Git command line interface (CLI) or any of the available Git clients. To learn more about Git, see the Git documentation. To learn more about using AWS CodeCommit with Git, see Getting Started with AWS CodeCommit.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

How do I get started with AWS CodeCommit?

Using AWS CodeCommit

AWS CodeCommit | Developer Tools

A

You can sign in to the AWS Management Console, create a repository, and start working with the repository using Git. If you want an introduction to the service, see Getting Started, which includes a step-by-step tutorial.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

How do I create a repository?

Using AWS CodeCommit

AWS CodeCommit | Developer Tools

A

You can create a repository from the AWS Management Console or by using the AWS Command Line Interface (AWS CLI), the AWS SDKs, or the AWS CodeCommit APIs.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

How do I update files in my repository?

Using AWS CodeCommit

AWS CodeCommit | Developer Tools

A

You use Git to work with the repository. For example, you can use the git clone command to make a local copy of the AWS CodeCommit repository. Make changes to the local files and use the git commit command when you’re ready to save the changes. Finally, use the git push command to upload the changes to the AWS CodeCommit repository. For step-by-step instructions, see Getting Started with AWS CodeCommit.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

How do I import my existing repository to AWS CodeCommit?

Using AWS CodeCommit

AWS CodeCommit | Developer Tools

A

You can use Git to import any existing Git repository to AWS CodeCommit. For other repositories, such as Subversion and Perforce, you can use a Git importer to first migrate it to a Git repository. For step by step instructions on importing Git repositories, see Migrate an Existing Repository to AWS CodeCommit. For instructions on migrating other repositories to Git, see the Git migration documentation.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What Git operations are currently supported by AWS CodeCommit?

Using AWS CodeCommit

AWS CodeCommit | Developer Tools

A

AWS CodeCommit currently supports clone, pull, push and fetch commands.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Does AWS CodeCommit support Git submodules?

Using AWS CodeCommit

AWS CodeCommit | Developer Tools

A

Yes. AWS CodeCommit can be used with Git repositories that include submodules.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What are the service limits when using AWS CodeCommit?

Using AWS CodeCommit

AWS CodeCommit | Developer Tools

A

For information on the service limits, see Limits.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What is the maximum size for a single file that I can store in CodeCommit?

Using AWS CodeCommit

AWS CodeCommit | Developer Tools

A

A single file in a repository cannot be more than 2 GB in size.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

How do I backup my repository?

Using AWS CodeCommit

AWS CodeCommit | Developer Tools

A

If you have a local copy of the repository from doing a full git clone, you can use that to restore data. If you want additional backups, there are multiple ways to do so. One way is to install Git on your backup server and run a scheduled job that uses the git clone command to take regular snapshots of your repository. You can use git pull instead of git clone if you want to copy only the incremental changes. Note that these operations may incur an additional user and/or request charges based on how you setup the backup server and the polling frequency.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

How do I restore a deleted AWS CodeCommit repository?

Using AWS CodeCommit

AWS CodeCommit | Developer Tools

A

Deleting an AWS CodeCommit repository is a destructive one-way operation that cannot be undone. To restore a deleted repository, you will need to create the repository again and use either a backup or a local copy from a full clone to upload the data. We recommend using IAM policies along with MFA-protection to restrict users who can delete repositories. For more details, see the Can I use AWS Identity and Access Management (IAM) to manage access to AWS CodeCommit? question in the Security section of the FAQ.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

How do I manage code reviews with AWS CodeCommit?

Using AWS CodeCommit

AWS CodeCommit | Developer Tools

A

For code reviews, you can use any Git-compatible code review system like Review Board.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

How do I integrate my continuous integration system with AWS CodeCommit?

Using AWS CodeCommit

AWS CodeCommit | Developer Tools

A

Continuous Integration (CI) systems can be configured to use Git to pull code from AWS CodeCommit. For examples on using CI systems with AWS CodeCommit, see our blog post on integrating AWS CodeCommit with Jenkins.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

How do I create webhooks using AWS CodeCommit?

Using AWS CodeCommit

AWS CodeCommit | Developer Tools

A

In the Amazon Simple Notification Service (SNS) console, you can create a SNS topic with an HTTP endpoint and the desired URL for the webhook. From the AWS CodeCommit console, you can then configure that SNS topic to a repository event using triggers.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly