Question
I`m trying to deploy a django project to AWS Beanstalk following this tutorial. I executed
eb create
and after a while I get the error
The instance profile aws-elasticbeanstalk-ec2-role associated with the environment does not exist.
I`m new to the Amazon cloud and can not interprete this error. Can somebody help me?
Answer
That role is created the first time you use the elastic beanstalk console. The CLI also attempts to create it, but your IAM user doesn't have permissions to create it. You can fix this error by logging in to the console and getting to the platform selection page. You will notice that it will ask you to create a role.
Otherwise, you can give your IAM user create role permissions and the CLI will create the role for you.