ステップ 2: Systems Manager Cloud Connector を作成する
Cloud Connector を設定したら、Systems Manager Cloud Connector を作成します。Systems Manager Cloud Connector は、Azure テナントとサブスクリプションの設定を保存し、それをコネクタにリンクさせます。
Systems Manager Cloud Connector を作成するには
-
以下のコマンドを実行してください。プレースホルダーの値を、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-arnCONFIG_CONNECTOR_ARNテナント内のすべてのサブスクリプションをターゲットにするには (テナントレベルのセットアップ)、設定から
Targetsフィールドを省略します。レスポンスが
CloudConnectorIdとCloudConnectorArnを返します。今後の作業のためにこれらの値を書き留めておきます。 -
Cloud Connector が正常に作成されたことを確認します。
aws ssm get-cloud-connector \ --cloud-connector-idCLOUD_CONNECTOR_ID