レポジトリリンクを作成する - デベロッパーツールコンソール

翻訳は機械翻訳により提供されています。提供された翻訳内容と英語版の間で齟齬、不一致または矛盾がある場合、英語版が優先します。

レポジトリリンクを作成する

AWS Command Line Interface (AWS CLI) の create-repository-link コマンドを使用して、接続と同期する外部リポジトリ間のリンクを作成できます。

リポジトリリンクを作成する前に、 などのサードパーティープロバイダーで外部リポジトリを作成しておく必要があります GitHub。

レポジトリリンクを作成するには
  1. ターミナル (Linux/macOS/Unix) またはコマンドプロンプト (Windows) を開きます。 AWS CLI を使用して create-repository-link コマンドを実行します。関連する接続の ARN、所有者 ID、およびリポジトリ名を指定します。

    aws codeconnections create-repository-link --connection-arn arn:aws:codeconnections:us-east-1:account_id:connection/001f5be2-a661-46a4-b96b-4d277cac8b6e --owner-id account_id --repository-name MyRepo
  2. このコマンドで、以下の出力が返ります。

    { "RepositoryLinkInfo": { "ConnectionArn": "arn:aws:codeconnections:us-east-1:account_id:connection/aEXAMPLE-8aad-4d5d-8878-dfcab0bc441f", "OwnerId": "account_id", "ProviderType": "GitHub", "RepositoryLinkArn": "arn:aws:codeconnections:us-east-1:account_id:repository-link/be8f2017-b016-4a77-87b4-608054f70e77", "RepositoryLinkId": "be8f2017-b016-4a77-87b4-608054f70e77", "RepositoryName": "MyRepo", "Tags": [] } }