AWS EC2 Instance (Elastic Compute Cloud)

AWS EC2, AMI, EIP, EBS, Elastic Compute Cloud, Elastic Block Store, Amazon Machine Images, Elastic IP, UserData Script, IAM Role, Security Group

EC2 Mandatory Resources

  • Network Interface
  • SSH Key
  • AMI (Amazon Machine Image)
  • Security Group
  • IAM Role (Optional)
  • EBS
  • Userdata Script (Optional)

Network Interface

Elastic Network Interface is attached in EC2 instance. This have private and public IP address. Two type of Public ip in aws.

  • Dynamic IP (Default Public IP)
  • EIP (Elastic IP Address)
Dynamic IP (Default Public IP)

This ip is automatically assign for all public ec2 instances. If Instance stops and start, Public ip has been changed. but private IP is not changed. Public ip is not separate billing in aws.

EIP (Elastic IP)

EIP is separated billing in aws. If EIP attached into Ec2 instance, Default ip has been removed. EIP is not changed on instance stop and start.

SSH Key Pair

SSH key is more secure method to connect server. Aws server access via ssh key for Linux EC2 instance. Windows Ec2 instance are access using password. That password retrieve using ssh private key.

AMI (Amazon Machine Image)

AMI (Amazon Machine Images) are available all flavor of operating system and pre-build application images.

  • Ubuntu
  • Amazon Linux
  • Redhat
  • Centos
  • Windows
  • Debian
  • etc..,

AWS Security Group

EC2 Security Group is act on firewall. Security group is help to prevent inbound and outbound traffic port ranges. Security group have 100 rule limitation.

IAM Role (Optional)

IAM Role have provide aws access for user and other resources. if needed any resources access for EC2 instance, Need to create role and attached to EC2 Instance. This is more secure method compare with key based cli.

EBS (Elastic Block Store)

EBS (Elastic Block Store) is act on ec2 instance storage volume. AWS providing different types of EBS.

  • HDD – Hard Disk Drive
    • st1 – Throughput-Optimized HDD
    • sc1 – Cold HDD
  • SSD – Solid State Drive
    • gp2 – General Purpose SSD
    • io1 – Provisioned IOPS SSD

Userdata Script (Optional)

Userdata scripts used for running package installation or any other job on server startup. This will help to implement automation. Userdata script are not recommended for all EC2 instance.

Reference Links:

AWS Website Link for EC2

Post Author: Thamu

Leave a Reply

Your email address will not be published. Required fields are marked *