0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

AWS SSM Automationの実行に必要なIAMポリシー句が変わっている

0
Last updated at Posted at 2026-03-24

はじめに

SSM Automationの実行に必要な権限が変わっているようなので紹介します

背景

いつものようにSSM Runbookを使っていると、権限エラーが発生し実行に失敗しました

そんな時Healthイベントを見ると2026年1月に下記のような通知が来ていることがわかり、その詳細を調査しました
image.png

仕様変更

どうやらSSM Automationの実行に必要な権限のResource句が変更になったようです。

これまでは下記の権限をSSM Automation実行用のIAMポリシーに付与すれば実行できました。

		{
			"Action": [
				"ssm:StartAutomationExecution"
			],
			"Resource": "arn:aws:ssm:ap-northeast-1:111122223333:automation-definition/*:*",
			"Effect": "Allow",
			"Sid": "AllowExecuteAutomation"
		}

しかし、今後は下記のようにResource句を追加する必要があります

		{
			"Action": [
				"ssm:StartAutomationExecution"
			],
			"Resource": [
				"arn:aws:ssm:ap-northeast-1:111122223333:automation-definition/*:*",
    			"arn:aws:ssm:*:111122223333:document/*",
				"arn:aws:ssm:*:111122223333:automation-execution/*"
			],
			"Effect": "Allow",
			"Sid": "AllowExecuteAutomation"
		}

※もし、SSM Runbookから別のSSM Runbookを実行するようなケースでは以下のように"ssm:GetAutomationExecution"を追加する必要があります。

		{
			"Action": [
				"ssm:StartAutomationExecution",
                "ssm:GetAutomationExecution"
			],
			"Resource": [
				"arn:aws:ssm:ap-northeast-1:111122223333:automation-definition/*:*",
    			"arn:aws:ssm:*:111122223333:document/*",
				"arn:aws:ssm:*:111122223333:automation-execution/*"
			],
			"Effect": "Allow",
			"Sid": "AllowExecuteAutomation"
		}

終わりに

こういった仕様変更に気づかないで調査に時間を要してしまっていたので、今後はHealthイベントをきちんと確認しておくべきだと反省しました。

参考文献

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?