We are currently updating the Validation for this lab. Sorry for the inconvenience caused.
This lab walks you through the steps to launch and configure a virtual machine in the Amazon cloud.
You will practice using Amazon Machine Images to launch Amazon EC2 Instances and use user data to create and install a web page using the instance. You will create a web page and publish it.
You will also create an additional elastic network interface and an additional elastic IP. Attach these additional created resources with EC2, and use another security group with HTTPS permission to test it.
Duration: 60 minutes
AWS Region: US East (N. Virginia) us-east-1
AWS defines it as Elastic Compute Cloud.
It’s a virtual environment where “you rent” to have your environment created, without purchasing.
Amazon refers to these virtual machines as Instances.
Preconfigured templates can be used to launch instances. These templates are referred to as images. Amazon provides these images in the form of AMIs (Amazon Machine Images).
Allows you to install custom applications and services.
Scaling of infrastructure i.e., up or down is easy based on the demand you face.
AWS provides multiple configurations of CPU, memory, storage, etc., through which you can pick the flavor that's required for your environment.
No limitation on storage. You can pick the storage based on the type of instance that you are working on.
Temporary storage volumes are provided, which are called Instance Store Volumes. Data stored in this gets deleted once the instance is terminated.
Persistent storage volumes are available and are referred to as EBS (Elastic Block Store) volumes.
These instances can be placed at multiple locations which are referred to as Regions and Availability Zones (AZ).
You can have your Instances distributed across multiple AZs i.e., within a single Region, so that if an instance fails, AWS automatically remaps the address to another AZ.
Instances deployed in one AZ can be migrated to another AZ.
To manage instances, images, and other EC2 resources, you can optionally assign your own metadata to each resource in the form of tags.
A Tag is a label that you assign to an AWS resource. It contains a key and an optional value, both of which are defined by you.
Each AWS account comes with a set of default limits on the resources on a per-Region basis.
For any increase in the limit, you need to contact AWS.
To work with the created instances, we use Key Pairs.
What is an Elastic Network Interface (ENI)?
Network Interface is a network card for the virtual machine, multiple ENI's can be attached to a single EC2 instance.
By default, it gives you a private IPv4 address, you can choose to attach an Elastic IP for a Public IPv4 address.
While attaching ENI's to EC2 instances, make sure to have your EC2 Instance in the same subnet as ENI.
You will charged for an Elastic IP Address that is associated with a network interface but the network interface isn’t attached to a running instance.
You can attach and detach secondary interfaces (eth1-ethn) on an EC2 instance, but you can’t detach the eth0 interface.
Launching Lab Environment.
Create a Security Group for the EC2 Instance.
Create a Security Group for the Elastic Network Interface
Launching an EC2 Instance.
Create an Elastic Network Interface and attach it to the EC2 Instance.
Allocating Elastic IP Address.
Associating an Elastic IP Address with the ENI.
Test both the Public IP Address of the Instance.
Validation of the lab