Regions and Git Connection Endpoints for AWS CodeCommit
To reduce data latency to your repositories, AWS CodeCommit offers regional endpoints to make your requests to the service. In addition, AWS CodeCommit provides Git connection endpoints for both SSH and HTTPS protocol connections in every region where AWS CodeCommit is available. AWS CodeCommit repositories are specific to an AWS region.
The examples in the AWS CodeCommit User Guide all use the same Git base URL:
git-codecommit.us-east-2.amazonaws.com. However, when using Git and configuring your
connections, make sure that you choose the Git connection endpoint that matches the region
that hosts your AWS CodeCommit repository. For example, if you want to make a connection to a
repository in US East (N. Virginia), you would use the base URL of
git-codecommit.us-east-1.amazonaws.com. This is also true for API calls. When making
connections to an AWS CodeCommit repository with the AWS CLI or the AWS CodeCommit API, make sure that you use
the correct regional endpoint for the repository.
Supported Regions for AWS CodeCommit
You can create and use AWS CodeCommit repositories in the following AWS regions:
US East (N. Virginia)
US East (Ohio)
US West (Oregon)
For more information about regional endpoints for AWS CLI, service, and API calls to AWS CodeCommit, see AWS Regions and Endpoints.
Git Connection Endpoints
Use the following URLs when configuring your Git connections to AWS CodeCommit repositories:
|US East (N. Virginia)||us-east-1||https://git-codecommit.us-east-1.amazonaws.com||HTTPS|
|US East (N. Virginia)||us-east-1||ssh://git-codecommit.us-east-1.amazonaws.com||SSH|
|US East (Ohio)||us-east-2||https://git-codecommit.us-east-2.amazonaws.com||HTTPS|
|US East (Ohio)||us-east-2||ssh://git-codecommit.us-east-2.amazonaws.com||SSH|
|US West (Oregon)||us-west-2||https://git-codecommit.us-west-2.amazonaws.com||HTTPS|
|US West (Oregon)||us-west-2||ssh://git-codecommit.us-west-2.amazonaws.com||SSH|