I am attempting to deploy a sample Node.js application ( Web server environment ) to AWS Elastic Beanstalk. Generally, I understand that a sample application should run without any issues. However, in my case, I am encountering a problem.
Initially, I let Elastic Beanstalk create a new role during the environment creation process. When this did not work, I manually attached additional policies to the role in an attempt to resolve the issue.
The IAM role currently has the following policies attached:
Unfortunately, even after these changes, I still cannot successfully deploy the sample application.
Are there additional steps required to get the sample Node.js application running in Elastic Beanstalk? Could there be another issue I am overlooking related to the role configuration or permissions? Are there limits I may have exceeded? Or could this possibly be a service issue on AWS's end?
Any guidance or insights would be greatly appreciated.
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Principal": {
"Service": "elasticbeanstalk.amazonaws.com"
},
"Action": "sts:AssumeRole"
}
]
}
Trust Relationship (Now)
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Principal": {
"Service": [
"elasticbeanstalk.amazonaws.com",
"ec2.amazonaws.com"
]
},
"Action": "sts:AssumeRole"
}
]
}
Found the problem. You have to create a different role with a name different than "aws-elasticbeanstalk-ec2-role".
Attach the following policies:
Specify the following Trust Relationship:
Then when creating the EB env, select it in the following box:
It should go as expected.
Cheers!