amazon web services ec2 basics
TRANSCRIPT
About Me
IT operations And Infrastructure ManagerAWS Certified Solutions Architect Using AWS for 3 years http://www.wekanban.comEmail: [email protected] : @osalkkLinkedin : https://tr.linkedin.com/in/onursalk
Agenda
What is EC2? EC2 Basics EC2 Instance Types EC2 Pricing Using AMIs Bootstrapping EC2 Instances Monitoring Demo
What is EC2?
- Region : Separate geographic area- Availability Zone: Isolated datacenter/datacenter clusters within a region
US West (OR)
AZ A AZ B
AZ C
GovCloud (US)
AZ A AZ B
US West (CA)
AZ A AZ B
AZ C
US East (VA)
AZ A AZ B
AZ C AZ D
AZ E
China (Beijing)*
AZ A
EU (Ireland)
AZ A AZ B
AZ C
AZ A AZ B
S. America (Sao Paulo)
Asia Pacific (Tokyo)
AZ A AZ B
AZ C
AZ A AZ B
Asia Pacific (Singapore)
China (Bejing)Asia Pacific (Sydney)
AZ A AZ B
EU (Frankfurt)
AZ A AZ B
What is EC2?
AMI
Virtual Machine Configuration
Instance
Running or Stopped VM
VPC
AZ AZ
Amazon S3
EBS EBS EBS
VPC
EBS EBS EBS
EBS Snapshots
S3 Buckets
Region
EC2 Basics
Instance Components- AMI ( OS,applications,settings etc )- Cpu- Memory- Storage
- Instance Storage- EBS
- Network- Security Group
EC2 Pricing
- On-Demand- Reserved ( 1 or 3 years )
- No Upfront- Partially Upfront- All Upfront- RI Volume Discount
- Spot- Dedicated
- Free Tier - http://aws.amazon.com/free/- 750 hours per month of Linux, RHEL, or SLES t2.micro instance usage- 750 hours per month of Windows t2.micro instance usage
Using AMIs
Amazon Machine Image- Amazon maintained- Community maintained- Owned
How to use?- Register new AMI- Copy AMI- Share AMI
Bootstrapping EC2 Instance
Pre-Baked, Static Configurations- Launch Instance- Configure Settings, Install Software- Create new AMI
Bootstrapping EC2 Instance
Dynamically Configured, CD
- Launch Instance- EC2 User Data, Cloudinit, Cloudformation,
Opsworks- Puppet,Chef,Ansible,Salt
Monitoring
- Basic(5-min period - Free)- Detailed(1-min period - Additional Charge)- Metrics?
- Cpu,Network,Disk I/O,Status- Memory,Disk Space,Swap,Page File(Script)
- Alarms , Notifications- Actions
- Recover- Stop- Terminate
CloudWatch