Saturday, 29 April 2017

Step 4 - Create an ebs application

Summary:
  • We have created an AWS account with two-factor authentication.
  • We have bought a domain name.
  • We have requested and downloaded TLS certificates signed by Amazon Certification Manager.
What we need to do now is to create an Amazon Elastic Beanstalk web application. This application needs a load balancer, a web server, and a user interface.
  • Go to AWS Elastic Beanstalk website, read introduction and watch the video.
  • Login to AWS Console with two-factor authentication.
  • Go to Amazon Elastic Beanstalk Console.
  • Under EBS Console, create an application using Sample Application template:
    • In container options select Node.js.
    • Select a Load Balancer (do not pick Single Instance).
    • Select instance type t2.nano.
    • Set up HTTPS on the EBS Load Balancer.
    • During HTTPS setup use the certificate ARN you noted in the previous step.
    • In the Network Configuration turn off HTTP. This will prevent insecure HTTP access to your website.
  • From AWS Console go to Route 53 Management Console.
  • Under your Hosted Zone, click the button Create Record Set.
  • Select type "A" (ALIAS).
  • Set Alias Target to Elastic Beanstalk application environment URL. The URL should look like this: https://my-app-env.us-west-2.elasticbeanstalk.com/.  It will link your EBS application to the registered domain in the Hosted Zone.
  • Once the EBS environment is up and running, browse to "https://yourdomain.com". You should be able to see the home page of Sample Application.
  • The URL bar should look like below. The address should start with https:// and the browser should recognise the certificate as Secure.