Configure an EC2 Instance
Elastic Compute Cloud (EC2) instances are pay-as-you-go, resizable server resources on the cloud.
Configurations include setting operating systems (Linux, Windows, etc.), hardware requirements, networking (https/ssh access), and volume (storage). Volumes that can be attached to EC2 instances include Elastic Block Store (EBS) and Simple Storage Service (S3). Workflow adapted from AWS tutorial on launching a virtual machine
- Log into AWS account
- Ensure correct region is selected (e.g., us east N Virginia)
- Search and select EC2 in Management Console
- Launch and configure Instance
- Select AMI (operating system) - e.g., Linux AMI
- Select Instance Type - e.g., T2 micro (free tier)
- Configure Advanced Instance Details
- Configure Storage: add EBS volume
- Add tags to name instance
- Security group: allow web connectivity via https/ssh access
- Download Key-pairs for ssh and save in secure location on local directory
- Launch Instance
- Access instance
- Click on View Instances
- Copy Public IP address
- Access instance via CLI
- Putty
- Open key-pair pem file with puttygen and save private key as ppk file
- In putty, enter user name - e.g., us-east2@(instance IP address)
- In auth tab, upload ppk key
- Git bash
- ssh -i {path to your .pem file} ec2-user@{instance IP address}
- Putty
- Access instance via CLI
- Terminate Instance
- In EC2 console, click on Actions -> Instance State -> Terminate