0
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

【EventBridge】インスタンスの自動起動スケジュール

Last updated at Posted at 2023-05-11

概要

EventBridgeでEC2 Instanceの自動起動スケジュールを作成する予定が、作成できずハマったことを備忘録として記す

発生したエラー

The execution role you provide must allow AWS EventBridge Scheduler to assume the role.

解決策

結局、ルールの定義を修正すれば解決する
コンソール上で、[ロール]-[信頼関係]の順でクリック
編集ボタンにて編集する

## 変更前
{
    "Version": "2012-10-17",
    "Statement": [
        {
            "Effect": "Allow",
            "Principal": {
                "Service": "ec2.amazonaws.com"
            },
            "Action": "sts:AssumeRole"
        }
    ]
}


## 変更後
{
    "Version": "2012-10-17",
    "Statement": [
        {
            "Effect": "Allow",
            "Principal": {
                "Service": "scheduler.amazonaws.com"
            },
            "Action": "sts:AssumeRole"
        }
    ]
}

Serviceとして定義しているルールを更新することでEventBridgeのスケジュールは正常に作成され、問題なく動作しました。
何はともあれ解決してよかった

参考文献

0
2
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
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?