View a markdown version of this page

Automation ディスパッチロール - AWS Systems Manager

Automation ディスパッチロール

Automation ディスパッチロールは、Cloud Connector に対してオートメーション実行を開始するときに State Manager が使用するロールです。State Manager はこのロールを通じてオートメーション継承ロールを Automation に渡します。また、ディスパッチロールは Azure フェデレーションロールを直接引き受けるため、State Manager は、関連付けの実行時に Cloud Connector のターゲットに一致する Azure 仮想マシンを解決できます。

ロール名のパターン: SSM-AzureDispatchRole-connector-name-id8

信頼ポリシーにより、Systems Manager サービスプリンシパルは AWS アカウント にスコープされたロールを引き受けることができます。123456789012 を AWS アカウント ID に置き換えます。

{ "Version": "2012-10-17", "Statement": [ { "Effect": "Allow", "Action": "sts:AssumeRole", "Principal": { "Service": "ssm.amazonaws.com" }, "Condition": { "StringEquals": { "aws:SourceAccount": "123456789012" } } } ] }

アクセス許可ポリシーは、Cloud Connector のターゲットに Automation 実行をディスパッチするために State Manager が必要とするアクションを付与します。123456789012 を AWS アカウント ID に、us-east-1 を Cloud Connector が作成された AWS リージョン に、SSM-AzureAssumeRole-MyConnector-a1b2c3d4 を オートメーション継承の名前に、SSM-AzureRole-MyConnector-a1b2c3d4 を Azure フェデレーションロールの名前に、connector-id を Cloud Connector の ID に置き換えます。

アクセス許可の詳細

このポリシーには、以下のアクセス許可が含まれています。

  • iam:PassRole – ランブックの実行を開始するときに、オートメーション継承ロールを Automation に渡すことを State Manager に許可します。条件 iam:PassedToService はパスを ssm.amazonaws.com に制限し、条件 iam:AssociatedResourceARN はパスをコネクタの AWS リージョン の AWS-InstallSsmAgentOnAzure ランブックとオートメーション実行に制限します。

  • iam:ListRoleTags – State Manager がロールのタグを読み取って、同じ Cloud Connector に属していることを確認してから、それらを渡したり引き受けたりできるようにします。

  • ssm:GetCloudConnector – ターゲット解決中に State Manager が Cloud Connector 設定を読み取ることを許可します。

  • ssm:ListCloudConnectors – 関連付けターゲットを解決するときに、State Manager が Cloud Connector を列挙できるようにします。

  • ssm:DescribeInstanceInformation – State Manager がコネクタを介して登録されたマネージドノードのステータスを読み取って、対象となるターゲットを決定できるようにします。

  • ssm:StartAutomationExecution – State Manager がコネクタのターゲットに対して AWS-InstallSsmAgentOnAzure ランブックの Automation 実行を開始できるようにします。

  • sts:AssumeRole – コネクタのターゲットを解決するときに Azure に認証できるように、State Manager が Azure フェデレーションロールを引き受けることを許可します。

{ "Version": "2012-10-17", "Statement": [ { "Effect": "Allow", "Action": "iam:PassRole", "Resource": "arn:aws:iam::123456789012:role/service-role/SSM-AzureAssumeRole-MyConnector-a1b2c3d4", "Condition": { "StringEquals": { "iam:PassedToService": "ssm.amazonaws.com" }, "ArnLike": { "iam:AssociatedResourceARN": [ "arn:aws:ssm:us-east-1:*:document/AWS-InstallSSMAgentOnAzure", "arn:aws:ssm:us-east-1:*:automation-definition/AWS-InstallSSMAgentOnAzure:1", "arn:aws:ssm:us-east-1:123456789012:automation-execution/*" ] } } }, { "Effect": "Allow", "Action": "ssm:GetCloudConnector", "Resource": "arn:aws:ssm:us-east-1:123456789012:cloud-connector/connector-id" }, { "Effect": "Allow", "Action": "ssm:StartAutomationExecution", "Resource": [ "arn:aws:ssm:us-east-1:*:document/AWS-InstallSSMAgentOnAzure", "arn:aws:ssm:us-east-1:*:automation-definition/AWS-InstallSSMAgentOnAzure:1", "arn:aws:ssm:us-east-1:123456789012:automation-execution/*" ] }, { "Effect": "Allow", "Action": "sts:AssumeRole", "Resource": "arn:aws:iam::123456789012:role/service-role/SSM-AzureRole-MyConnector-a1b2c3d4" }, { "Effect": "Allow", "Action": [ "ssm:DescribeInstanceInformation", "ssm:ListCloudConnectors", "iam:ListRoleTags" ], "Resource": "*" } ] }