Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Error while deploying web application to Amazon elastic beanstalk

I am using Eclipse EE Juno edition. I created a dynamic web application which uses Amazon Simple DB and retirviing some values and showing to users. i have installed the AWS kit for using Amazon services.

I have an account for simpleDB.

I tried to deploy it to AWS Elastic Beanstalk (through the plugin). It shows me to select the server. I selected it as AW Beanstalk with TOmcat 6 (asia Pacific Tokyo).

After sometime it gives this error.

Unable to upload application to Amazon S3: User: arn:aws:iam::379007759147:user/SSSS is not authorized to perform: elasticbeanstalk:CreateStorageLocation User: arn:aws:iam::379007759147:user/SSSS is not authorized to perform: elasticbeanstalk:CreateStorageLocation

I wish to upload the web application to AWS beanstalk and appreciate your help in achieving it.

like image 359
Sunil Avatar asked Aug 23 '12 06:08

Sunil


People also ask

How do I use Elastic Beanstalk with AWS?

You simply use the AWS Management Console, a Git repository, or an integrated development environment (IDE) such as Eclipse or Visual Studio to upload your application, and Elastic Beanstalk automatically handles the deployment details of capacity provisioning, load balancing, auto-scaling, and application health monitoring.

What is the deployment ID for Elastic Beanstalk?

Deployment IDs start at 1 and increment by one with each deployment and instance configuration change. If you enable enhanced health reporting, Elastic Beanstalk displays the deployment ID in both the health console and the EB CLI when it reports instance health status.

What is the fastest way to deploy an application to AWS?

Fast and simple to begin. Elastic Beanstalk is the fastest and simplest way to deploy your application on AWS. You simply use the AWS Management Console, a Git repository, or an integrated development environment (IDE) such as Eclipse or Visual Studio to upload your application, and Elastic Beanstalk automatically handles the deployment details...

Where can I find error messages in Elastic Beanstalk?

Error messages can appear as events on the environment management page in the console, in logs, or on the health page. If the health of your environment changes to red, try the following: Review recent environment events. Messages from Elastic Beanstalk about deployment, load, and configuration issues often appear here.


Video Answer


2 Answers

It worked for me with the following permissions

  1. AWSElasticBeanstalkFullAccess - AWS Managed policy
  2. AWSElasticBeanstalkService - AWS Managed policy
  3. AWSCodeDeployRole - AWS Managed policy
  4. AWSCodeDeployFullAccess - AWS Managed policy
like image 52
Amrish Avatar answered Nov 04 '22 21:11

Amrish


The user need to have 3 permissions:

  • IAM(read)
  • S3(write)
  • Beanstalk(write)

and, there is a limitation of 1 user can maximum be attached with 2 policy.

so, maybe you need to create 3 groups and assign this user to these 3 groups.

It worked for me.

like image 23
Timeless Avatar answered Nov 04 '22 21:11

Timeless