Config Eclipse IDE

Content

Access to EC2

  1. Access AWS EC2, and open EC2 instance DevAxWindowsHost.
  2. Click Connect.

RemoteInstances

  1. Select RDP tab, then click Download remote desktop file to download RDP file to remote access.
  2. Click Get password.

RemoteInstances

  1. Click Upload private key file and select KPforDevAxInstances keypair to decrypt password for windows virtual.
  2. Click Decrypt password.

RemoteInstances

  1. Copy passowrd and used to log into the Windows virtual machine.

RemoteInstances

Config Eclipse IDE

  1. Open the command line and configure the profile for the workshop.

Please create access key and secret access key for awsstudent user generated by Cloud Formation Template in preparation section and use it to config awscli. Also, go to the IAM console, select IAM User awsstudent, then select Permissions, Add permissions|Attach existing policy directly and select AdministratorAccess.

aws configure set profile.aws-lab-env.region <your-region>
aws configure set profile.aws-lab-env.aws_access_key_id <your_access_key_id>
aws configure set profile.aws-lab-env.aws_secret_access_key <your_secret_access_key>

EclipseIDE

  1. Open Eclipse IDE, in Eclipse IDE Launcher window, leave the default option and click Launch. Click Finish for the AWS Toolkit crawl window.

EclipseIDE

  1. Click Restore.

EclipseIDE

  1. Click AWS symbol and select Click vào biểu tượng AWS and select the arrow, then select Preferences.

EclipseIDE

  1. Set Default Profile is aws-lab-env.
  2. Select Apply and Close.

EclipseIDE

Setting S3 buckets

You need to create 2 buckets. A bucket will contain the lambda function to be uploaded and a bucket used to store the image.

  1. Create S3 bucket to store Lambda function code. You can use the AWS Console or use the command line:
aws s3 mb s3://idevelop-sourcecode-<yourinitials> --region <region> --profile aws-lab-env

with is the unique name for your bucket. Replace with the region that matches your practice.

  1. Create another bucket to store uploaded images. Similar to the above step, we name the S3 bucket idevelop-imagemanager-. The command will be as follows:
aws s3 mb s3://idevelop-imagemanager-<yourinitials> --region <region> --profile aws-lab-env

CreateS3bucket

After completing the above two steps, you will have 2 S3 buckets similar to the image below.

CreateS3bucket