

Amazon CodeCatalyst 不再向新客戶開放。現有客戶可以繼續正常使用該服務。如需詳細資訊，請參閱[如何從 CodeCatalyst 遷移](migration.md)。

本文為英文版的機器翻譯版本，如內容有任何歧義或不一致之處，概以英文版為準。

# 透過第三方儲存庫供應商限制 IP 存取
<a name="extensions-restrict-ip-access"></a>

您可以設定規則或組態，根據 IP 地址限制對 GitHub 儲存庫、Bitbucket 儲存庫或 GitLab 專案儲存庫的存取。您可以透過第三方供應商的設定或存取控制功能來執行此操作。

視您使用的第三方儲存庫提供者而定，請參閱下列其中一項：
+ Amazon CodeCatalyst **GitHub 儲存庫**延伸模組與 [ GitHub Enterprise Cloud IP 存取限制](https://docs.github.com/en/enterprise-cloud@latest/organizations/keeping-your-organization-secure/managing-security-settings-for-your-organization/managing-allowed-ip-addresses-for-your-organization)相容。設定 GitHub Enterprise Cloud 組織以限制存取特定 IP 地址時，您也可以[啟用 GitHub 應用程式來設定允許清單](https://docs.github.com/en/enterprise-cloud@latest/organizations/keeping-your-organization-secure/managing-security-settings-for-your-organization/managing-allowed-ip-addresses-for-your-organization#allowing-access-by-github-apps)，讓 CodeCatalyst 自動向 GitHub 註冊其 IP 地址。或者，您可以[手動新增 CodeCatalyst IP 地址](https://docs.github.com/en/enterprise-cloud@latest/organizations/keeping-your-organization-secure/managing-security-settings-for-your-organization/managing-allowed-ip-addresses-for-your-organization#adding-an-allowed-ip-address)。
+ Amazon CodeCatalyst **Bitbucket 儲存庫**延伸模組與 [ Bitbucket Cloud Premium 存取限制](https://support.atlassian.com/bitbucket-cloud/docs/control-access-to-your-private-content/)相容。設定 Bitbucket Cloud Premium 工作區以限制存取特定 IP 地址時，您也可以[將一組 IP 地址的 IP 地址或網路區塊新增至允許清單](https://support.atlassian.com/bitbucket-cloud/docs/control-access-to-your-private-content/#Allowlisting-IP-addresses)。
+ Amazon CodeCatalyst **GitLab 儲存庫**延伸模組與 [ GitLab IP 地址限制](https://docs.gitlab.com/ee/administration/reporting/ip_addr_restrictions.html)相容。設定 GitLab Premium 或 Ultimate 群組以限制存取特定 IP 地址時，您也可以將[一組 IP 地址的 IP 地址或網路區塊新增至允許清單](https://docs.gitlab.com/ee/user/group/access_and_permissions.html)。

如果 CodeCatalyst IP 地址不在第三方儲存庫的允許清單中，Amazon CodeCatalyst 應用程式將無法存取您的第三方儲存庫。如需詳細資訊，請參閱[第三方儲存庫擴充功能所使用的 IP 地址](#codecatalyst-ip-address)。

## 第三方儲存庫擴充功能所使用的 IP 地址
<a name="codecatalyst-ip-address"></a>

第三方擴充功能會使用下列 IP 地址來存取您的第三方資源：
+ **GitHub 儲存庫**：

  ```
  us-west-2
    52.32.242.246
    54.148.176.49
    35.164.118.94
  eu-west-1
    34.241.64.10
    34.246.255.80
    3.248.38.7
  ```
+ **Bitbucket 儲存庫**和 **GitLab 儲存庫**：

  ```
  us-west-2
    35.160.210.199 
    54.71.206.108 
    54.71.36.205
  eu-west-1
    34.242.64.82 
    52.18.37.201 
    54.77.75.62
  ```