sakthiiv / aws-eb-sqs

Instructions for setting up Sender and Receiver Application in Amazon Web Service Elastic Beanstalk and making those two applications communicate using Simple Queue Service

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

aws-eb-sqs

Instructions for setting up Sender and Receiver Application in Amazon Web Service Elastic Beanstalk and making those two applications communicate using Simple Queue Service .

Assignment link.

Instructions are divided as follows,

How-to ?

  • Create AWS Credentials
  • Create an SQS Queue
  • Setting up Java Receiver
  • Setting up NodeJs Sender

1. Creating AWS Credentials


Navigate to Security Credentials Page. Click Users Tab.


screenshot


Click on Create New Users, and type in the user name


screenshot


You will be prompted with an Access Key Id and Secret Access Key. We will be using these keys in our sender and receiver application.


screenshot

2. Creating an SQS Queue

screenshot

screenshot


Adding Permission.


screenshot


Choosing options.


screenshot


Your Queue URL will be available in the details tab. We will be using this URL for communication.


3. Setting up Java Receiver


Download Receiver.war file here. We need to make changes to the following files for setting up Receiver in Tomcat. Make these changes in the Receiver.war file without extracting.


  • AWSCredentials.properties - Provide the AWS Credentials (Access Key Id and Secret Access Key)
  • whoami.txt - Enter your name and Bits ID
  • web.xml - Provide the Queue URL

Navigate to Elastic Beanstalk.


screenshot

screenshot


Provide a name for the application.


screenshot


Create a new Web Server.


screenshot


Choose a default profile.


screenshot


Choose an enviroment type.


screenshot

screenshot


Upload your zip file.


screenshot


Provide an environment URL.


screenshot

screenshot

screenshot

screenshot


Click on launch to launch your enviroment and be patient as it takes some time to initialize the environment.


4. Setting up NodeJs Sender


We need to make changes to the following files for setting up NodeJs


  • aws.credentials.json - Provide the AWS Credentials (Access Key Id and Secret Access Key)
  • whoami.txt - Enter your name and Bits ID
  • sqsendpointdetails.txt - Provide the Queue URL

Make sure you are compressing the 5 files without placing it in a folder. In case there is a folder named node_modules delete it before uploading.


Follow the same steps similar to the previous application till choosing an environment


screenshot

screenshot


Follow the steps as specified for the previous application


About

Instructions for setting up Sender and Receiver Application in Amazon Web Service Elastic Beanstalk and making those two applications communicate using Simple Queue Service