Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Elastic Beanstalk migration Upload Source Code to S3 instructions #34

Open
sdoyle88 opened this issue Apr 20, 2021 · 3 comments
Open

Elastic Beanstalk migration Upload Source Code to S3 instructions #34

sdoyle88 opened this issue Apr 20, 2021 · 3 comments

Comments

@sdoyle88
Copy link

Hi there!

I recently attempted this lab at an AWS hosted event, and noticed that there is no IAM role that ever gets attached to the Webserver instance. This breaks the step in upload-source-code-to-s3.en.md, as the EC2 doesn't have the permissions required to upload the .zip bundle to Beanstalk. For the AWS hosted event there is a workaround using another instance profile role available that has S3 PutObject permissions. However, not sure if there should be an explicit callout to use that role, or to create a new one with S3 permissions.

@sduru
Copy link
Contributor

sduru commented May 10, 2021

Hello, could you help me to understand the issue you got here? There should normally be an attached role for your webserver EC2 instance which has the rights to put object to an S3 bucket. Is that possible for you to check if you can see the attached IAM role in your instance details > under Security tab ? You should be seeing the EC2InstanceRole there, then would be great if you could click to that role and confirm if you can see S3 is permitted under your role details (Policy name: AmazonEC2RoleforSSM)? thanks

@sdoyle88
Copy link
Author

That is the issue. When I checked the web server instance it had NO attached instance role. In order to get the lab to work, I had to attach a role to the instance. I did not have enough rights to create a new role (IIRC), so I had to attach another instance role that was established for EC2 that had the appropriate S3 PutObject permissions. I will try to launch this stack again and see if I have the same issue.

@sduru
Copy link
Contributor

sduru commented May 10, 2021

Ok. thanks. will wait your confirmation. The Role is created and attached into the instances automatically when worskhop launched through Cloudformation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants