AWS Compute Services

AWS Elastic Beanstalk Overview

AWS Elastic Beanstalk is an easy-to-use service for deploying and scaling web applications. You simply upload your code and Elastic Beanstalk automatically handles the deployment, from capacity provisioning, load balancing, auto-scaling to application health monitoring. You still retain full control over the AWS resources powering your application and can access the underlying resources at any time.

 

Important Points (Exam Tips)

  1. There is no additional charge for Elastic Beanstalk - you pay only for the AWS resources that is creates.

Elastic Load Balancing - Application Load Balancers vs. Classic Load Balancers

Amazon Elastic Load Balancing (ELB) automatically distributes incoming application traffic across multiple EC2 instances. ELB also automatically scales its request handling capacity to meet the demands of application traffic. 

Elastic Load Balancing supports two types of load balancers: Application Load Balancers (new) and Classic Load Balancers.

 

AWS CloudWatch Overview

Amazon CloudWatch is a monitoring service for AWS cloud resources and the applications you run on AWS. You can use CloudWatch to gain system-wide info on resource utilization, application performance, and operational health, collect and track metrics, collect and monitor log files, set alarms, and automatically react to changes in your AWS resources.

Using Amazon EFS with Amazon EC2

Amazon Elastic File System (Amazon EFS) is a simple, scalable file storage for use with Amazon EC2 instances in the AWS Cloud.  With Amazon EFS, storage capacity is elastic, growing and shrinking automatically as you add and remove files.

 

Introduction to AWS Lambda and Serverless Computing

AWS Lambda is a higher level abstraction that lets you run code without provisioning or managing servers, following the servlerless architecture. You can run code for virtually any type of application or backend service with no administration.

You just needs to upload your code and Lambda takes care of everything required to run and scale your code with high availability, such as server and operating system maintenance, capacity provisioning, automatic scaling, code and security patch deployment, code monitoring and even logging.

[Lab] Using Amazon EFS with Amazon EC2

Amazon Elastic File System (Amazon EFS) is a simple, scalable file storage for use with Amazon EC2 instances in the AWS Cloud.  With Amazon EFS, storage capacity is elastic, growing and shrinking automatically as you add and remove files. Read more here.

 

Steps

  1. Go to AWS console and go to EFS.

Amazon EC2 Placement Groups

A placement group is a logical grouping of instances within a single AZ. Placement groups are recommended for applications that benefit from low network latency, high network throughput, or both.

 

Creating Placement Group & Launching Instances

First, you create a placement group and then you launch multiple instances into the placement group.

[Theory+Lab] Auto scaling Groups and Launch Configurations with Amazon EC2

Auto Scaling helps you maintain application availability and allows you to scale your Amazon EC2 capacity up or down automatically according to conditions you define. Before creating an auto scaling group, you need to create launch configurations, and is very similar to creating an EC2 instance.

If you have not deleted previous s3 bucket or the elastic load balancers, you may reuse them. Else you can create them following the exercises.

 

[Lab] Getting EC2 Instance Metadata from AWS Command Line

AWS provides us with many variables which we can use in many cases. We can combine this with the bootstrap bash script to write various information to s3 or other locations.

 

Steps

  1. Login to AWS console and go to IAM:

    1. Go to Roles (side menu)

    2. Create a role:  Give any name, select role type as Amazon EC2, Attach following policies: AmazonS3FullAccess.

  2. Go to EC2:

[Lab] Configuring EC2 Bootstrap Script Using Bash Scripting

 You can run any script while starting an EC2 instance. Here we will run script to install apache server, copy the index.html from s3 to the html folder of apache server, and finally start apache httpd server.

 

Steps

  1. Create an index.html file (refer to previous labs).

  2. Login to AWS console and go to S3.

Pages