I have RoR application, and when using AWS eb command line I try to create ElasticBeanstalk application, it asks me for --service-role flag
I give him IAM role that exists: for example admin with admin permissions or aws-elasticbeanstalk-ec2-role
so I write eb create --service-role aws-elasticbeanstalk-ec2-role
It starts to deploy, but after a while it transition health to warning because of:
Unable to assume role "arn:aws:iam::xxxxxxxxxx:role/aws-elasticbeanstalk-ec2-role". Verify that the role exists and is configured correctly.
Thats why my deployment fails.
Any suggestions?
Thanks
When you create an environment you assign a service role to it. You need to create this role first. There are predefined ones you can use. Through the console you can create this role as you create your environment.
These resources should help you: https://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_create_for-service.html https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/concepts-roles.html
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