AWS CodeCommit is no longer available to new customers. Existing customers of AWS CodeCommit can continue to use the service as normal. Learn more
AWS CodeCommit FAQs
NA"},"metadata":{"tags":[{"id":"GLOBAL#product#codecommit","name":"AWS CodeCommit","namespaceId":"GLOBAL#product","description":"AWS CodeCommit","metadata":{}}]}},{"fields":{"topic":"How much does AWS CodeCommit cost?","id":"product-faqs#codecommit-faqs-billing-1","customSortOrder":"1","content":"
AWS CodeCommit costs $1 per active user per month. For every active user, your account receives an additional allowance of 10 GB-month of storage and 2,000 Git requests for that month. Unused allowance for storage and Git requests does not carry over to later months. If you need more storage or Git requests for your users, additional usage will be charged at $0.06 per GB-month and $0.001 per Git request. Users may store as many Git repositories as they would like. Your usage is calculated each month across all regions and automatically applied to your bill. Please see the pricing page for more details."},"metadata":{"tags":[{"id":"GLOBAL#product#codecommit","name":"AWS CodeCommit","namespaceId":"GLOBAL#product","description":"AWS CodeCommit","metadata":{}},{"id":"product-faqs#aws-codecommit-faqs#billing","name":"billing","namespaceId":"product-faqs#aws-codecommit-faqs","description":"
billing","metadata":{}}]}},{"fields":{"topic":"Which regions does AWS CodeCommit support?","id":"product-faqs#codecommit-faqs-regions-1","customSortOrder":"1","content":"
Please refer to Regional Products and Services for details of CodeCommit availability by region."},"metadata":{"tags":[{"id":"product-faqs#aws-codecommit-faqs#regions","name":"regions","namespaceId":"product-faqs#aws-codecommit-faqs","description":" regions","metadata":{}},{"id":"GLOBAL#product#codecommit","name":"AWS CodeCommit","namespaceId":"GLOBAL#product","description":"AWS CodeCommit","metadata":{}}]}},{"fields":{"topic":"Can I use AWS Identity and Access Management (IAM) to manage access to AWS CodeCommit?","id":"product-faqs#codecommit-faqs-security-1","customSortOrder":"1","content":" Yes. AWS CodeCommit supports resource-level permissions. For each AWS CodeCommit repository, you can specify which users can perform which actions. You can also specify AWS multi-factor authentication (MFA) for a CodeCommit action. This allows you to add an extra level of protection for destructive actions such as deleting repositories. In addition to the AWS CodeCommit APIs, you can also specify git pull and git push as actions to control access from Git clients. For example, you can create a read-only user for a repository by allowing that user access to git pull but not git push on the repository. For more information on using IAM with AWS CodeCommit, see Authentication and Access Control for AWS CodeCommit. For more information on authenticating API access using MFA, see Configuring MFA-Protected API Access."},"metadata":{"tags":[{"id":"product-faqs#aws-codecommit-faqs#security","name":"security","namespaceId":"product-faqs#aws-codecommit-faqs","description":" security","metadata":{}},{"id":"GLOBAL#product#codecommit","name":"AWS CodeCommit","namespaceId":"GLOBAL#product","description":"AWS CodeCommit","metadata":{}}]}},{"fields":{"topic":"How do I get started with AWS CodeCommit?","id":"product-faqs#codecommit-faqs-using-1","customSortOrder":"1","content":" 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."},"metadata":{"tags":[{"id":"GLOBAL#product#codecommit","name":"AWS CodeCommit","namespaceId":"GLOBAL#product","description":"AWS CodeCommit","metadata":{}},{"id":"product-faqs#aws-codecommit-faqs#using-aws-codecommit","name":"using-aws-codecommit","namespaceId":"product-faqs#aws-codecommit-faqs","description":" using-aws-codecommit","metadata":{}}]}},{"fields":{"topic":"What is AWS CodeCommit?","id":"product-faqs#codecommit-faqs-general-1","customSortOrder":"1","content":" AWS CodeCommit is a secure, highly scalable, managed source control service that makes it easier for teams to collaborate on code. AWS CodeCommit eliminates the need for you to operate your own source control system or worry about scaling its infrastructure. You can use AWS CodeCommit to store anything from code to binaries, and it works seamlessly with your existing Git tools."},"metadata":{"tags":[{"id":"GLOBAL#product#codecommit","name":"AWS CodeCommit","namespaceId":"GLOBAL#product","description":"AWS CodeCommit","metadata":{}},{"id":"product-faqs#aws-codecommit-faqs#general","name":"general","namespaceId":"product-faqs#aws-codecommit-faqs","description":" general","metadata":{}}]}},{"fields":{"topic":"What is the definition of an active user in AWS CodeCommit?","id":"product-faqs#codecommit-faqs-billing-2","customSortOrder":"2","content":" An active user is any unique AWS identity (IAM user/role, federated user, or root account) that accesses AWS CodeCommit repositories during the month, either through Git requests or by using the AWS Management Console. A server accessing CodeCommit using a unique AWS identity counts as an active user."},"metadata":{"tags":[{"id":"product-faqs#aws-codecommit-faqs#billing","name":"billing","namespaceId":"product-faqs#aws-codecommit-faqs","description":" billing","metadata":{}},{"id":"GLOBAL#product#codecommit","name":"AWS CodeCommit","namespaceId":"GLOBAL#product","description":"AWS CodeCommit","metadata":{}}]}},{"fields":{"topic":"What communication protocols are supported by AWS CodeCommit?","id":"product-faqs#codecommit-faqs-security-2","customSortOrder":"2","content":" You can use either the HTTPS or SSH protocols or both to communicate with AWS CodeCommit. To use HTTPS, first install the AWS CLI. The AWS CLI installs a Git credential helper that can be configured with AWS credentials. It automatically signs all HTTPS requests to AWS CodeCommit using the Signature Version 4 signing specification. To use SSH, users create their own public-private key pairs and add their public keys to their IAM users. The private key encrypts the communication with AWS CodeCommit. For step-by-step instructions on setting up HTTPS and SSH access, see the Setting up AWS CodeCommit page."},"metadata":{"tags":[{"id":"GLOBAL#product#codecommit","name":"AWS CodeCommit","namespaceId":"GLOBAL#product","description":"AWS CodeCommit","metadata":{}},{"id":"product-faqs#aws-codecommit-faqs#security","name":"security","namespaceId":"product-faqs#aws-codecommit-faqs","description":" security","metadata":{}}]}},{"fields":{"topic":"How do I create a repository?","id":"product-faqs#codecommit-faqs-using-2","customSortOrder":"2","content":" 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."},"metadata":{"tags":[{"id":"GLOBAL#product#codecommit","name":"AWS CodeCommit","namespaceId":"GLOBAL#product","description":"AWS CodeCommit","metadata":{}},{"id":"product-faqs#aws-codecommit-faqs#using-aws-codecommit","name":"using-aws-codecommit","namespaceId":"product-faqs#aws-codecommit-faqs","description":" using-aws-codecommit","metadata":{}}]}},{"fields":{"topic":"What is Git?","id":"product-faqs#codecommit-faqs-general-2","customSortOrder":"2","content":" 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."},"metadata":{"tags":[{"id":"GLOBAL#product#codecommit","name":"AWS CodeCommit","namespaceId":"GLOBAL#product","description":"AWS CodeCommit","metadata":{}},{"id":"product-faqs#aws-codecommit-faqs#general","name":"general","namespaceId":"product-faqs#aws-codecommit-faqs","description":" general","metadata":{}}]}},{"fields":{"topic":"What ports should I open in my firewall for access to AWS CodeCommit?","id":"product-faqs#codecommit-faqs-security-3","customSortOrder":"3","content":" You will have to open outbound access to an AWS CodeCommit service endpoint on port 22 (SSH) or port 443 (HTTPS)."},"metadata":{"tags":[{"id":"GLOBAL#product#codecommit","name":"AWS CodeCommit","namespaceId":"GLOBAL#product","description":"AWS CodeCommit","metadata":{}},{"id":"product-faqs#aws-codecommit-faqs#security","name":"security","namespaceId":"product-faqs#aws-codecommit-faqs","description":" security","metadata":{}}]}},{"fields":{"topic":"Which Git requests are considered towards the monthly allowance?","id":"product-faqs#codecommit-faqs-billing-3","customSortOrder":"3","content":" A Git request includes any push or pull that transmits repository objects. The request does not count towards your Git request allowance if there is no object transfer due to local and remote branches being up-to-date."},"metadata":{"tags":[{"id":"product-faqs#aws-codecommit-faqs#billing","name":"billing","namespaceId":"product-faqs#aws-codecommit-faqs","description":" billing","metadata":{}},{"id":"GLOBAL#product#codecommit","name":"AWS CodeCommit","namespaceId":"GLOBAL#product","description":"AWS CodeCommit","metadata":{}}]}},{"fields":{"topic":"How do I update files in my repository?","id":"product-faqs#codecommit-faqs-using-3","customSortOrder":"3","content":" You can edit your files directly from the CodeCommit console or you can use Git to work with the repository. For example, Git commands, 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."},"metadata":{"tags":[{"id":"product-faqs#aws-codecommit-faqs#using-aws-codecommit","name":"using-aws-codecommit","namespaceId":"product-faqs#aws-codecommit-faqs","description":" using-aws-codecommit","metadata":{}},{"id":"GLOBAL#product#codecommit","name":"AWS CodeCommit","namespaceId":"GLOBAL#product","description":"AWS CodeCommit","metadata":{}}]}},{"fields":{"topic":"Who should use AWS CodeCommit?","id":"product-faqs#codecommit-faqs-general-3","customSortOrder":"3","content":" AWS CodeCommit is designed for software developers who need a secure, reliable, and scalable source control system to store and version their code. In addition, AWS CodeCommit can be used by anyone looking for an easy to use, fully managed data store that is version controlled. For example, IT administrators can use AWS CodeCommit to store their scripts and configurations. Web designers can use AWS CodeCommit to store HTML pages and images."},"metadata":{"tags":[{"id":"product-faqs#aws-codecommit-faqs#general","name":"general","namespaceId":"product-faqs#aws-codecommit-faqs","description":" general","metadata":{}},{"id":"GLOBAL#product#codecommit","name":"AWS CodeCommit","namespaceId":"GLOBAL#product","description":"AWS CodeCommit","metadata":{}}]}},{"fields":{"topic":"How do I encrypt my repository in AWS CodeCommit?","id":"product-faqs#codecommit-faqs-security-4","customSortOrder":"4","content":" Repositories are automatically encrypted at rest. No customer action is required. AWS CodeCommit uses AWS Key Management Service (KMS) to encrypt repositories. When you create your first repository, an AWS-managed CodeCommit key is created under your AWS account. For details, see Encryption for AWS CodeCommit Repositories."},"metadata":{"tags":[{"id":"GLOBAL#product#codecommit","name":"AWS CodeCommit","namespaceId":"GLOBAL#product","description":"AWS CodeCommit","metadata":{}},{"id":"product-faqs#aws-codecommit-faqs#security","name":"security","namespaceId":"product-faqs#aws-codecommit-faqs","description":" security","metadata":{}}]}},{"fields":{"topic":"How do I import my existing repository to AWS CodeCommit?","id":"product-faqs#codecommit-faqs-using-4","customSortOrder":"4","content":" 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 step-by-step instructions on importing local or unversioned content, see the Git migration documentation."},"metadata":{"tags":[{"id":"GLOBAL#product#codecommit","name":"AWS CodeCommit","namespaceId":"GLOBAL#product","description":"AWS CodeCommit","metadata":{}},{"id":"product-faqs#aws-codecommit-faqs#using-aws-codecommit","name":"using-aws-codecommit","namespaceId":"product-faqs#aws-codecommit-faqs","description":" using-aws-codecommit","metadata":{}}]}},{"fields":{"topic":"How is AWS CodeCommit different from other Git-based source control systems?","id":"product-faqs#codecommit-faqs-general-4","customSortOrder":"4","content":" AWS CodeCommit offers a number of features not offered by other Git source control systems: \n general","metadata":{}},{"id":"GLOBAL#product#codecommit","name":"AWS CodeCommit","namespaceId":"GLOBAL#product","description":"AWS CodeCommit","metadata":{}}]}},{"fields":{"topic":"Can I enable cross-account access to my repository?","id":"product-faqs#codecommit-faqs-security-5","customSortOrder":"5","content":" Yes. You can create an IAM role in your AWS account to delegate access to a repository to IAM users in other AWS accounts. The IAM users can then configure their AWS CLI to use AWS Security Token Service (STS) and assume the role when running commands. For details see Assuming a Role in the AWS CLI documentation."},"metadata":{"tags":[{"id":"product-faqs#aws-codecommit-faqs#security","name":"security","namespaceId":"product-faqs#aws-codecommit-faqs","description":" security","metadata":{}},{"id":"GLOBAL#product#codecommit","name":"AWS CodeCommit","namespaceId":"GLOBAL#product","description":"AWS CodeCommit","metadata":{}}]}},{"fields":{"topic":"What Git operations are currently supported by AWS CodeCommit?","id":"product-faqs#codecommit-faqs-using-5","customSortOrder":"5","content":" AWS CodeCommit currently supports clone, pull, push and fetch commands."},"metadata":{"tags":[{"id":"product-faqs#aws-codecommit-faqs#using-aws-codecommit","name":"using-aws-codecommit","namespaceId":"product-faqs#aws-codecommit-faqs","description":" using-aws-codecommit","metadata":{}},{"id":"GLOBAL#product#codecommit","name":"AWS CodeCommit","namespaceId":"GLOBAL#product","description":"AWS CodeCommit","metadata":{}}]}},{"fields":{"topic":"How does AWS CodeCommit compare to a versioned S3 bucket?","id":"product-faqs#codecommit-faqs-general-5","customSortOrder":"5","content":" 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."},"metadata":{"tags":[{"id":"GLOBAL#product#codecommit","name":"AWS CodeCommit","namespaceId":"GLOBAL#product","description":"AWS CodeCommit","metadata":{}},{"id":"product-faqs#aws-codecommit-faqs#general","name":"general","namespaceId":"product-faqs#aws-codecommit-faqs","description":" general","metadata":{}}]}},{"fields":{"topic":"Does AWS CodeCommit support Git submodules?","id":"product-faqs#codecommit-faqs-using-6","customSortOrder":"6","content":" Yes. AWS CodeCommit can be used with Git repositories that include submodules."},"metadata":{"tags":[{"id":"product-faqs#aws-codecommit-faqs#using-aws-codecommit","name":"using-aws-codecommit","namespaceId":"product-faqs#aws-codecommit-faqs","description":" using-aws-codecommit","metadata":{}},{"id":"GLOBAL#product#codecommit","name":"AWS CodeCommit","namespaceId":"GLOBAL#product","description":"AWS CodeCommit","metadata":{}}]}},{"fields":{"topic":"What are the service limits when using AWS CodeCommit?","id":"product-faqs#codecommit-faqs-using-7","customSortOrder":"7","content":" For information on the service limits, see Limits."},"metadata":{"tags":[{"id":"product-faqs#aws-codecommit-faqs#using-aws-codecommit","name":"using-aws-codecommit","namespaceId":"product-faqs#aws-codecommit-faqs","description":" using-aws-codecommit","metadata":{}},{"id":"GLOBAL#product#codecommit","name":"AWS CodeCommit","namespaceId":"GLOBAL#product","description":"AWS CodeCommit","metadata":{}}]}},{"fields":{"topic":"What is the maximum size for a single file that I can store in CodeCommit?","id":"product-faqs#codecommit-faqs-using-8","customSortOrder":"8","content":" A single file in a repository cannot be more than 2 GB in size."},"metadata":{"tags":[{"id":"product-faqs#aws-codecommit-faqs#using-aws-codecommit","name":"using-aws-codecommit","namespaceId":"product-faqs#aws-codecommit-faqs","description":" using-aws-codecommit","metadata":{}},{"id":"GLOBAL#product#codecommit","name":"AWS CodeCommit","namespaceId":"GLOBAL#product","description":"AWS CodeCommit","metadata":{}}]}},{"fields":{"topic":"How do I backup my repository?","id":"product-faqs#codecommit-faqs-using-9","customSortOrder":"9","content":" 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 additional user and/or request charges based on how you set up the backup server and the polling frequency."},"metadata":{"tags":[{"id":"GLOBAL#product#codecommit","name":"AWS CodeCommit","namespaceId":"GLOBAL#product","description":"AWS CodeCommit","metadata":{}},{"id":"product-faqs#aws-codecommit-faqs#using-aws-codecommit","name":"using-aws-codecommit","namespaceId":"product-faqs#aws-codecommit-faqs","description":" using-aws-codecommit","metadata":{}}]}},{"fields":{"topic":"How do I restore a deleted AWS CodeCommit repository?","id":"product-faqs#codecommit-faqs-using-10","customSortOrder":"10","content":" 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."},"metadata":{"tags":[{"id":"GLOBAL#product#codecommit","name":"AWS CodeCommit","namespaceId":"GLOBAL#product","description":"AWS CodeCommit","metadata":{}},{"id":"product-faqs#aws-codecommit-faqs#using-aws-codecommit","name":"using-aws-codecommit","namespaceId":"product-faqs#aws-codecommit-faqs","description":" using-aws-codecommit","metadata":{}}]}},{"fields":{"topic":"How do I manage code reviews with AWS CodeCommit?","id":"product-faqs#codecommit-faqs-using-11","customSortOrder":"11","content":" CodeCommit supports code reviews and enables you to set permissions on branches of your code. Please see our documentation for help with code reviews or branch-level permissions."},"metadata":{"tags":[{"id":"GLOBAL#product#codecommit","name":"AWS CodeCommit","namespaceId":"GLOBAL#product","description":"AWS CodeCommit","metadata":{}},{"id":"product-faqs#aws-codecommit-faqs#using-aws-codecommit","name":"using-aws-codecommit","namespaceId":"product-faqs#aws-codecommit-faqs","description":" using-aws-codecommit","metadata":{}}]}},{"fields":{"topic":"How do I integrate my continuous integration system with AWS CodeCommit?","id":"product-faqs#codecommit-faqs-using-12","customSortOrder":"12","content":" 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."},"metadata":{"tags":[{"id":"GLOBAL#product#codecommit","name":"AWS CodeCommit","namespaceId":"GLOBAL#product","description":"AWS CodeCommit","metadata":{}},{"id":"product-faqs#aws-codecommit-faqs#using-aws-codecommit","name":"using-aws-codecommit","namespaceId":"product-faqs#aws-codecommit-faqs","description":" using-aws-codecommit","metadata":{}}]}},{"fields":{"topic":"How do I create webhooks using AWS CodeCommit?","id":"product-faqs#codecommit-faqs-using-13","customSortOrder":"13","content":" In the Amazon SNS console, you can create an 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. Additionally, customers using AWS Chatbot can configure notifications to be sent to their Slack Channels or Amazon Chime chat rooms. For more details please visit here."},"metadata":{"tags":[{"id":"product-faqs#aws-codecommit-faqs#using-aws-codecommit","name":"using-aws-codecommit","namespaceId":"product-faqs#aws-codecommit-faqs","description":" using-aws-codecommit","metadata":{}},{"id":"GLOBAL#product#codecommit","name":"AWS CodeCommit","namespaceId":"GLOBAL#product","description":"AWS CodeCommit","metadata":{}}]}},{"fields":{"topic":"Can I get a history of AWS CodeCommit Git operations and API calls made in my account for security analysis and operational troubleshooting purposes?","id":"product-faqs#codecommit-faqs-using-14","customSortOrder":"14","content":" Yes. You can review recent CodeCommit events, including Git operations and API calls, in the AWS CloudTrail console. For an ongoing record of events you can create a trail and log events in an Amazon S3 bucket. For more information, see Logging AWS CodeCommit API Calls with AWS CloudTrail."},"metadata":{"tags":[{"id":"GLOBAL#product#codecommit","name":"AWS CodeCommit","namespaceId":"GLOBAL#product","description":"AWS CodeCommit","metadata":{}},{"id":"product-faqs#aws-codecommit-faqs#using-aws-codecommit","name":"using-aws-codecommit","namespaceId":"product-faqs#aws-codecommit-faqs","description":" using-aws-codecommit","metadata":{}}]}}]},"metadata":{"auth":{},"pagination":{"empty":false,"present":true},"testAttributes":{}},"context":{"page":{"locale":null,"site":null,"pageUrl":"https://aws.amazon.com/codecommit/faqs/","targetName":null,"pageSlotId":null,"organizationId":null,"availableLocales":null},"environment":{"stage":"prod","region":"us-east-1"},"sdkVersion":"1.0.115"},"refMap":{"manifest.js":"56c38ad8da","rt-groupable-faq.css":"1527d6ac78","rt-groupable-faq.js":"7713d72213","rt-groupable-faq.rtl.css":"8d5c2e0a8b","rt-groupable-faq.css.js":"801ce38d75","rt-groupable-faq.rtl.css.js":"dbea407106"},"settings":{"templateMappings":{"topic":"topic","content":"content","grouping":"grouping"}}}
\n