AWS CodeCommit
用户指南 (API 版本 2015-04-13)

AWS CodeCommit 的区域和 Git 连接终端节点

每个 CodeCommit 存储库与一个 AWS 区域关联。CodeCommit 提供了用于向服务发出请求的区域终端节点。此外,CodeCommit 还在 CodeCommit 可用的每个区域中为 SSH 和 HTTPS 协议提供了 Git 连接终端节点。

本指南中的所有示例都使用美国东部(俄亥俄州)中用于 Git 的同一终端节点 URL:git-codecommit.us-east-2.amazonaws.com。但是,您在使用 Git 和配置连接时,请务必选择与承载您的 CodeCommit 存储库的 AWS 区域匹配的 Git 连接终端节点。例如,如果您要连接 美国东部(弗吉尼亚北部) 中的存储库,应使用终端节点 URL git-codecommit.us-east-1.amazonaws.com。这也适用于 API 调用。在使用 AWS CLI 或开发工具包连接 CodeCommit 存储库时,请务必使用存储库的正确区域终端节点。

CodeCommit 的支持区域

您可以在以下 AWS 区域中创建和使用 CodeCommit 存储库:

  • 美国东部(俄亥俄州)

  • 美国东部(弗吉尼亚北部)

  • 美国西部(加利福尼亚北部)

  • 美国西部(俄勒冈)

  • 欧洲(爱尔兰)

  • 欧洲 (伦敦)

  • 欧洲 (巴黎)

  • 欧洲(法兰克福)

  • 欧洲(斯德哥尔摩)

  • 亚太区域(东京)

  • 亚太区域(新加坡)

  • 亚太区域(悉尼)

  • 亚太区域(首尔)

  • 亚太地区(孟买)

  • 南美洲(圣保罗)

  • 加拿大 (中部)

  • AWS GovCloud(美国西部)

  • AWS GovCloud(美国东部)

CodeCommit 已在某些区域增加了对美国联邦信息处理标准 (FIPS) 第 140-2 版政府标准的支持。有关 FIPS 和 FIPS 终端节点的更多信息,请参阅美国联邦信息处理标准 (FIPS) 第 140-2 版概览。有关支持 FIPS 的 Git 连接终端节点的更多信息,请参阅 Git 连接终端节点

有关 AWS CLI、服务以及对 CodeCommit 的 API 调用的区域终端节点的更多信息,请参阅 AWS 区域和终端节点

Git 连接终端节点

在配置与 CodeCommit 存储库的 Git 连接时请使用以下 URL:

用于 AWS CodeCommit 的 Git 连接终端节点

区域名称 区域 终端节点 URL 协议
美国东部(俄亥俄州) us-east-2 https://git-codecommit.us-east-2.amazonaws.com HTTPS
美国东部(俄亥俄州) us-east-2 ssh://git-codecommit.us-east-2.amazonaws.com SSH
美国东部(俄亥俄州) us-east-2 https://git-codecommit-fips.us-east-2.amazonaws.com HTTPS
美国东部(弗吉尼亚北部) us-east-1 https://git-codecommit.us-east-1.amazonaws.com HTTPS
美国东部(弗吉尼亚北部) us-east-1 ssh://git-codecommit.us-east-1.amazonaws.com SSH
美国东部(弗吉尼亚北部) us-east-1 https://git-codecommit-fips.us-east-1.amazonaws.com HTTPS
美国西部(俄勒冈) us-west-2 https://git-codecommit.us-west-2.amazonaws.com HTTPS
美国西部(俄勒冈) us-west-2 ssh://git-codecommit.us-west-2.amazonaws.com SSH
美国西部(俄勒冈) us-west-2 https://git-codecommit-fips.us-west-2.amazonaws.com HTTPS
美国西部(加利福尼亚北部) us-west-1 https://git-codecommit.us-west-1.amazonaws.com HTTPS
美国西部(加利福尼亚北部) us-west-1 ssh://git-codecommit.us-west-1.amazonaws.com SSH
美国西部(加利福尼亚北部) us-west-1 https://git-codecommit-fips.us-west-1.amazonaws.com HTTPS
欧洲(爱尔兰) eu-west-1 https://git-codecommit.eu-west-1.amazonaws.com HTTPS
欧洲(爱尔兰) eu-west-1 ssh://git-codecommit.eu-west-1.amazonaws.com SSH
亚太区域(东京) ap-northeast-1 https://git-codecommit.ap-northeast-1.amazonaws.com HTTPS
亚太区域(东京) ap-northeast-1 ssh://git-codecommit.ap-northeast-1.amazonaws.com SSH
亚太区域(新加坡) ap-southeast-1 https://git-codecommit.ap-southeast-1.amazonaws.com HTTPS
亚太区域(新加坡) ap-southeast-1 ssh://git-codecommit.ap-southeast-1.amazonaws.com SSH
亚太区域(悉尼) ap-southeast-2 https://git-codecommit.ap-southeast-2.amazonaws.com HTTPS
亚太区域(悉尼) ap-southeast-2 ssh://git-codecommit.ap-southeast-2.amazonaws.com SSH
欧洲(法兰克福) eu-central-1 https://git-codecommit.eu-central-1.amazonaws.com HTTPS
欧洲(法兰克福) eu-central-1 ssh://git-codecommit.eu-central-1.amazonaws.com SSH
亚太区域(首尔) ap-northeast-2 https://git-codecommit.ap-northeast-2.amazonaws.com HTTPS
亚太区域(首尔) ap-northeast-2 ssh://git-codecommit.ap-northeast-2.amazonaws.com SSH
南美洲(圣保罗) sa-east-1 https://git-codecommit.sa-east-1.amazonaws.com HTTPS
南美洲(圣保罗) sa-east-1 ssh://git-codecommit.sa-east-1.amazonaws.com SSH
欧洲 (伦敦) eu-west-2 https://git-codecommit.eu-west-2.amazonaws.com HTTPS
欧洲 (伦敦) eu-west-2 ssh://git-codecommit.eu-west-2.amazonaws.com SSH
亚太地区(孟买) ap-south-1 https://git-codecommit.ap-south-1.amazonaws.com HTTPS
亚太地区(孟买) ap-south-1 ssh://git-codecommit.ap-south-1.amazonaws.com SSH
加拿大 (中部) ca-central-1 https://git-codecommit.ca-central-1.amazonaws.com HTTPS
加拿大 (中部) ca-central-1 ssh://git-codecommit.ca-central-1.amazonaws.com SSH
加拿大 (中部) ca-central-1 https://git-codecommit-fips.ca-central-1.amazonaws.com HTTPS
欧洲 (巴黎) eu-west-3 https://git-codecommit.eu-west-3.amazonaws.com HTTPS
欧洲 (巴黎) eu-west-3 ssh://git-codecommit.eu-west-3.amazonaws.com SSH
AWS GovCloud(美国西部) us-gov-west-1 https://git-codecommit.us-gov-west-1.amazonaws.com HTTPS
AWS GovCloud(美国西部) us-gov-west-1 ssh://git-codecommit.us-gov-west-1.amazonaws.com SSH
AWS GovCloud(美国西部) us-gov-west-1 https://git-codecommit-fips.us-gov-west-1.amazonaws.com HTTPS
AWS GovCloud(美国东部) us-gov-east-1 https://git-codecommit.us-gov-east-1.amazonaws.com HTTPS
AWS GovCloud(美国东部) us-gov-east-1 ssh://git-codecommit.us-gov-east-1.amazonaws.com SSH
AWS GovCloud(美国东部) us-gov-east-1 https://git-codecommit-fips.us-gov-east-1.amazonaws.com HTTPS
欧洲(斯德哥尔摩) eu-north-1 https://git-codecommit.eu-north-1.amazonaws.com HTTPS
欧洲(斯德哥尔摩) eu-north-1 ssh://git-codecommit.eu-north-1.amazonaws.com SSH

CodeCommit 的服务器指纹

下表列出了 CodeCommit 中用于 Git 连接终端节点的公有指纹。验证过程中会显示这些服务器指纹,以用于向已知主机文件中添加终端节点。

CodeCommit 的公有指纹

服务器 加密哈希类型 指纹
git-codecommit.us-east-2.amazonaws.com MD5 a9:6d:03:ed:08:42:21:be:06:e1:e0:2a:d1:75:31:5e
git-codecommit.us-east-2.amazonaws.com SHA256 3lBlW2g5xn/NA2Ck6dyeJIrQOWvn7n8UEs56fG6ZIzQ
git-codecommit.us-east-1.amazonaws.com MD5 a6:9c:7d:bc:35:f5:d4:5f:8b:ba:6f:c8:bc:d4:83:84
git-codecommit.us-east-1.amazonaws.com SHA256 eLMY1j0DKA4uvDZcl/KgtIayZANwX6t8+8isPtotBoY
git-codecommit.us-west-2.amazonaws.com MD5 a8:68:53:e3:99:ac:6e:d7:04:7e:f7:92:95:77:a9:77
git-codecommit.us-west-2.amazonaws.com SHA256 0pJx9SQpkbPUAHwy58UVIq0IHcyo1fwCpOOuVgcAWPo
git-codecommit.eu-west-1.amazonaws.com MD5 93:42:36:ea:22:1f:f1:0f:20:02:4a:79:ff:ea:12:1d
git-codecommit.eu-west-1.amazonaws.com SHA256 tKjRkOL8dmJyTmSbeSdN1S8F/f0iql3RlvqgTOP1UyQ
git-codecommit.ap-northeast-1.amazonaws.com MD5 8e:a3:f0:80:98:48:1c:5c:6f:59:db:a7:8f:6e:c6:cb
git-codecommit.ap-northeast-1.amazonaws.com SHA256 Xk/WeYD/K/bnBybzhiuu4dWpBJtXPf7E30jHU7se4Ow
git-codecommit.ap-southeast-1.amazonaws.com MD5 65:e5:27:c3:09:68:0d:8e:b7:6d:94:25:80:3e:93:cf
git-codecommit.ap-southeast-1.amazonaws.com SHA256 ZIsVa7OVzxrTIf+Rk4UbhPv6Es22mSB3uTBojfPXIno
git-codecommit.ap-southeast-2.amazonaws.com MD5 7b:d2:c1:24:e6:91:a5:7b:fa:c1:0c:35:95:87:da:a0
git-codecommit.ap-southeast-2.amazonaws.com SHA256 nYp+gHas80HY3DqbP4yanCDFhqDVjseefVbHEXqH2Ec
git-codecommit.eu-central-1.amazonaws.com MD5 74:5a:e8:02:fc:b2:9c:06:10:b4:78:84:65:94:22:2d
git-codecommit.eu-central-1.amazonaws.com SHA256 MwGrkiEki8QkkBtlAgXbYt0hoZYBnZF62VY5RzGJEUY
git-codecommit.ap-northeast-2.amazonaws.com MD5 9f:68:48:9b:5f:fc:96:69:39:45:58:87:95:b3:69:ed
git-codecommit.ap-northeast-2.amazonaws.com SHA256 eegAPQrWY9YsYo9ZHIKOmxetfXBHzAZd8Eya53Qcwko
git-codecommit.sa-east-1.amazonaws.com MD5 74:99:9d:ff:2b:ef:63:c6:4b:b4:6a:7f:62:c5:4b:51
git-codecommit.sa-east-1.amazonaws.com SHA256 kW+VKB0jpRaG/ZbXkgbtMQbKgEDK7JnISV3SVoyCmzU
git-codecommit.us-west-1.amazonaws.com MD5 3b:76:18:83:13:2c:f8:eb:e9:a3:d0:51:10:32:e7:d1
git-codecommit.us-west-1.amazonaws.com SHA256 gzauWTWXDK2u5KuMMi5vbKTmfyerdIwgSbzYBODLpzg
git-codecommit.eu-west-2.amazonaws.com MD5 a5:65:a6:b1:84:02:b1:95:43:f9:0e:de:dd:ed:61:d3
git-codecommit.eu-west-2.amazonaws.com SHA256 r0Rwz5k/IHp/QyrRnfiM9j02D5UEqMbtFNTuDG2hNbs
git-codecommit.ap-south-1.amazonaws.com MD5 da:41:1e:07:3b:9e:76:a0:c5:1e:64:88:03:69:86:21
git-codecommit.ap-south-1.amazonaws.com SHA256 hUKwnTj7+Xpx4Kddb6p45j4RazIJ4IhAMD8k29itOfE
git-codecommit.ca-central-1.amazonaws.com MD5 9f:7c:a2:2f:8c:b5:74:fd:ab:b7:e1:fd:af:46:ed:23
git-codecommit.ca-central-1.amazonaws.com SHA256 Qz5puafQdANVprLlj6r0Qyh4lCNsF6ob61dGcPtFS7w
git-codecommit.eu-west-3.amazonaws.com MD5 1b:7f:97:dd:d7:76:8a:32:2c:bd:2c:7b:33:74:6a:76
git-codecommit.eu-west-3.amazonaws.com SHA256 uw7c2FL564jVoFgtc+ikzILnKBsZz7t9+CFdSJjKbLI
git-codecommit.us-gov-west-1.amazonaws.com MD5 9f:6c:19:3b:88:cd:e8:88:1b:9c:98:6a:95:31:8a:69
git-codecommit.us-gov-west-1.amazonaws.com SHA256 djXQoSIFcg8vHe0KVH1xW/gOF9X37tWTqu4Hkng75x4
git-codecommit.us-gov-east-1.amazonaws.com MD5 00:8d:b5:55:6f:05:78:05:ed:ea:cb:3f:e6:f0:62:f2
git-codecommit.us-gov-east-1.amazonaws.com SHA256 fVb+R0z7qW7minenW+rUpAABRCRBTCzmETAJEQrg98
git-codecommit.eu-north-1.amazonaws.com MD5 8e:53:d8:59:35:88:82:fd:73:4b:60:8a:50:70:38:f4
git-codecommit.eu-north-1.amazonaws.com SHA256 b6KSK7xKq+V8jl7iuAcjqXsG7zkqoUZZmmhYYFBq1wQ