View a markdown version of this page

Step 2: Create a Systems Manager Cloud Connector - Amazon Systems Manager
Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions, see Getting Started with Amazon Web Services in China (PDF).

Step 2: Create a Systems Manager Cloud Connector

Create the Systems Manager Cloud Connector. The Systems Manager Cloud Connector stores the Azure tenant and subscription configuration. If you created an Amazon Config connector in Step 1, the Systems Manager Cloud Connector also links the configuration to it.

To create a Systems Manager Cloud Connector
  1. Run the following command. Replace the placeholder values with your Azure tenant ID, the Systems Manager application (client) ID, subscription IDs, the Systems Manager Azure federation role ARN, and the Amazon Config connector ARN from Step 1. To create the connector without Amazon Config recording, omit --config-connector-arn. You can't add, change, or remove the Amazon Config connector ARN after you create the Cloud Connector.

    Create the federation role before you run this command

    Before you run this command, the Systems Manager Azure federation role that --role-arn identifies must already exist. Its trust policy must also allow the Systems Manager service principal (ssm.amazonaws.com) to assume it. The Amazon CLI and API do not create this role for you. If either requirement is not met, the command fails. The error message is ValidationException: Nonexistent role or missing ssm service principal in trust policy. Create the role first with the trust and permissions policies in Azure federation role. Use the same role name and ARN that you used for the federated identity credential subject in Azure prerequisites.

    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" \ --config-connector-arn CONFIG_CONNECTOR_ARN

    To target all subscriptions in the tenant (tenant-level setup), omit the Targets field from the configuration.

    The response returns the CloudConnectorId. Note this value for future operations.

  2. Verify the Cloud Connector was created successfully:

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