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."
In the role, I've added those permissions
I know it's mostly too much but still not enough cause I'm getting the error... Any idea ?
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"
}
]
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With