It took me 24 hrs to do this .It was very simple to configure but the help documentation was all over the web . So , after finishing my configuration and successfully deploying my application I am here writing my blog.
How to:
Create a connection to aws database, test the connection.
Now --> go to Database --> Migration wizard and import the required database to the aws.
Note: create role, create group, create users - give them administrative permissions
Access keys consist of an access key ID and secret access key, which are used to sign programmatic requests that you make to AWS. If you don't have access keys, you can create them by using the AWS Management Console. We recommend that you use IAM access keys instead of AWS root account access keys. IAM lets you securely control access to AWS services and resources in your AWS account.
http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-key-pairs.html#having-ec2-create-your-key-pair.
After creation , associate the key pair file with the key pair in the eclipse.
Right click on the key pair and associate the key pair file which you should have on your desktop.
Deploy the Application:
Go through this amazon resource to complete the deployment.
http://docs.aws.amazon.com/elasticbeanstalk/latest/dg/create_deploy_Java.sdlc.html
Errors I got:
502 Proxy Error: This is because I didn't add the key pair file to the key pair in the eclipse.
Helpful Resources:
http://java.awsblog.com/
- Create a RDS database
- Configure the security group to access your database from the local system
- Data Migration
How to:
Create a connection to aws database, test the connection.
Now --> go to Database --> Migration wizard and import the required database to the aws.
- Configurings AWS Toolkit to work with your project:
Note: create role, create group, create users - give them administrative permissions
Access keys consist of an access key ID and secret access key, which are used to sign programmatic requests that you make to AWS. If you don't have access keys, you can create them by using the AWS Management Console. We recommend that you use IAM access keys instead of AWS root account access keys. IAM lets you securely control access to AWS services and resources in your AWS account.
Note
To create access keys, you must have permissions to perform the required IAM actions. For more information,
see Granting IAM User Permission to Manage Password Policy and
Credentials
in Using IAM.- Open the IAM console.
- From the navigation menu, click Users.
- Select your IAM user name.
- Click User Actions, and then click Manage Access Keys.
- Click Create Access Key.
Your keys will look something like this:
- Access key ID example: AKIAIOSFODNN7EXAMPLE
- Secret access key example: wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY
- Click Download Credentials, and store the keys in a secure location.
Your secret key will no longer be available through the AWS Management Console; you will have the only copy. Keep it confidential in order to protect your account, and never email it. Do not share it outside your organization, even if an inquiry appears to come from AWS or Amazon.com. No one who legitimately represents Amazon will ever ask you for your secret key.
Restart the eclipse
- Deploying to the AWS Elastic Beanstalk from the eclipse:
http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-key-pairs.html#having-ec2-create-your-key-pair.
After creation , associate the key pair file with the key pair in the eclipse.
Right click on the key pair and associate the key pair file which you should have on your desktop.
Deploy the Application:
Go through this amazon resource to complete the deployment.
http://docs.aws.amazon.com/elasticbeanstalk/latest/dg/create_deploy_Java.sdlc.html
Errors I got:
502 Proxy Error: This is because I didn't add the key pair file to the key pair in the eclipse.
Helpful Resources:
http://java.awsblog.com/