View a markdown version of this page

ステップ 2: Systems Manager Cloud Connector を作成する - AWS Systems Manager

ステップ 2: Systems Manager Cloud Connector を作成する

Cloud Connector を設定したら、Systems Manager Cloud Connector を作成します。Systems Manager Cloud Connector は、Azure テナントとサブスクリプションの設定を保存し、それをコネクタにリンクさせます。

Systems Manager Cloud Connector を作成するには
  1. 以下のコマンドを実行してください。プレースホルダーの値を、Azure テナント ID、Systems Manager アプリケーション (クライアント) ID、サブスクリプション ID、Systems Manager Azure フェデレーションロール ARN、およびステップ 1 のコネクタ ARN に置き換えます。

    aws ssm create-cloud-connector \ --display-name "MyAzureConnector" \ --configuration '{ "AzureConfiguration": { "TenantId": "TENANT_ID", "ApplicationId": "SSM_APP_CLIENT_ID", "Targets": { "Subscriptions": [ {"Id": "SUBSCRIPTION_ID"} ] } } }' \ --role-arn "arn:aws:iam::ACCOUNT_ID:role/service-role/SSM-AzureRole-CONNECTOR_NAME-ID8" \ --config-connector-arn CONFIG_CONNECTOR_ARN

    テナント内のすべてのサブスクリプションをターゲットにするには (テナントレベルのセットアップ)、設定から Targets フィールドを省略します。

    レスポンスが CloudConnectorIdCloudConnectorArn を返します。今後の作業のためにこれらの値を書き留めておきます。

  2. Cloud Connector が正常に作成されたことを確認します。

    aws ssm get-cloud-connector \ --cloud-connector-id CLOUD_CONNECTOR_ID