Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

I'm creating a role to reboot automatically an EC2 instance. But I'm getting this error "The execution role you provide must allow AWS EventBridge Scheduler to assume the role."

enter image description here

In the role, I've added those permissions

enter image description here

I know it's mostly too much but still not enough cause I'm getting the error... Any idea ?

like image 592
MathKimRobin Avatar asked Sep 02 '25 16:09

MathKimRobin


1 Answers

You need to add the below trust policy to your execution role which will allow EventBridge Scheduler to assume the role.

Open IAM Console → In the navigation pane of the console, choose Roles and then choose your role → Select Trust Relationship tab → Click on Edit trust Policy and add the below policy.

{
    "Version": "2012-10-17",
    "Statement": [
        {
            "Effect": "Allow",
            "Principal": {
                "Service": "scheduler.amazonaws.com"
            },
            "Action": "sts:AssumeRole"
        }
    ]
}
like image 71
Arpit Jain Avatar answered Sep 05 '25 15:09

Arpit Jain



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!