Amazon Elastic Compute Cloud (Amazon EC2) provides resizable compute capacity in the cloud. It gives you complete control over your computing resources how you can run your applications in the AWS Cloud. In this session, we explore the fundamentals of Amazon EC2, providing you with all that you need to begin deploying your applications to the cloud. Come prepared with your Amazon EC2 questions and have them answered in this session!
8. 1) Launching your first instance
2) Storage options
3) Networking fundamentals
4) Monitoring and availability
5) Documentation and support
[ The Plan ]
11. 1) What is an instance?
2) Regions and Availability Zones
3) Amazon Machine Images (AMIs)
4) Security (key pairs and security groups)
5) Instance types (t1.micro, m1.small, …)
6) Launching the instance
[ Your first instance ]
12. _ Virtual server running within an Amazon EC2 data center
_ Accessible remotely (Secure Shell, Remote Desktop Protocol, …)
_ Complete control (root or administrator access)
_ Runs until stopped or terminated
_ Incurs hourly cost while running
[ 1. What is an instance? ]
13. _ Multiple separate regions located around the globe
_ Each region is completely isolated from all other regions
_ Instances are able to communicate between regions
_ Select a region that meets your needs (latency, legal, community …)
[ 2. Regions and Availability Zones ]
14.
15.
16. _ Each region contains multiple Availability Zones
_ Each zone is insulated from failures in other zones
_ Using multiple zones protects against a failure in a single location
_ If you do not specify a zone, Amazon EC2 will choose one for you
[ 2. Regions and Availability Zones ]
17.
18. _ Provides a template for the instance being launched
_ Contains the root file system and data needed to boot the instance
_ Currently 15,000 images available worldwide
_ Support for multiple operating systems
_ Images can be private, shared between accounts, or public
[ 3. Amazon Machine Images (AMI) ]
21. _ Public images have no password for login
_ Key pairs provide a secure login using public/private keys
_ Also used for encryption of the Windows administrator password
_ Create or import a named key pair
_ Public key used within instance for authentication
_ Private key always remains a secret
[ 4. Security: Key Pairs ]
22.
23.
24.
25.
26. _ A firewall that controls traffic into a group of instances
_ Default security group available in each region
_ Add rules to allow inbound traffic (port range, source cidr)
_ All other traffic is discarded
[ 4. Security: Security Groups ]
27.
28.
29. _ Determine the underlying hardware of the instance
_ Each type offers different compute and memory capabilities
_ Choose the type that best meets the needs of your application
_ Instances can be changed to support vertical scaling
[ 5. Instance Types ]
30. _ Region has been selected: US West (Oregon)
_ Selected an image: Amazon Linux AMI x86_64 EBS
_ Key pair has been created: web-server
_ Configured the security group: tcp 22, tcp 80 and icmp
_ Ready to launch …
[ 6. Launching the instance ]
31.
32.
33.
34.
35.
36.
37.
38.
39.
40.
41.
42.
43.
44.
45.
46.
47. 1) What is an instance?
2) Regions and Availability Zones
3) Amazon Machine Images (AMIs)
4) Security (key pairs and security groups)
5) Instance types (t1.micro, m1.small, …)
6) Launching the instance
[ Your first instance re:cap ]
49. 1) Local instance storage
2) Amazon Elastic Block Store (EBS)
[ Storage ]
50. _ Temporary block-level storage
_ Physically attached to the host machine
_ Data is NOT persisted when the instance is terminated
_ Cost NOT included in instance hour charge
_ Use for mutating data that needs long-term persistence
[ 1. Instance Store ]
51.
52. _ Persistent block-level storage
_ Attached to the instance via the network
_ Data IS persisted when the instance is terminated
_ Supports up to 1 TiB storage per volume
_ Cost NOT included in the instance hourly charge
_ Use for mutating data that needs long-term persistence
[ 2. Elastic Block Store ]
60. I n st a n c e A
I n st a n c e B
I n st a n c e St o r e Vo l u m es Sn a psho t s
Ho st Ma c hi n e Am a z o n EBS Am a z o n S3
[ Storage re:cap ]
63. _ Each region provides a flat network topology
_ Instances can communicate within and between Availability Zones
_ Traffic between regions is transferred over the Internet
_ Traffic is charged per GB (free, regional, and Internet)
[ 1. Networking basics ]
64. _ Each instance is assigned both a private and public IP address
_ Public IP addresses are reachable over the Internet
_ Private IP addresses are reachable ONLY with the EC2 network
_ Private and Public IP address are lost when the instance is terminated
_ DNS names are provided for both private and public IP addresses
[ 1. Networking basics ]
65. _ Static IP addresses designed for dynamic cloud computing
_ Associated with your account, not a specific instance
_ Can be mapped to instances as needed
_ Removes the need for dynamic DNS
_ Incur an hourly cost when not mapped to an instance
[ 2. Elastic IP addresses ]
73. _ Amazon VPC allows you to define your own network with EC2
_ IP addresses are assigned from a specified CIDR range
_ Closely resembles a traditional network (subnets, routers, …)
_ Combined multiple VPCs to form a larger virtual network
_ VPCs can be connected back to you own data center via VPN
[ 3. Advanced networking ]
78. _ EC2 performs automated health checks on all running instances
_ Check for both system and instance impairments
_ System impairments need to be resolved by Amazon EC2
_ Instance impairments indicate a problem within the instance
_ Use instance status to monitor the health of your EC2 fleet
[ 3. Instance Status ]
79.
80.
81. _ Powered by Amazon CloudWatch
_ Collects raw instance data to expose performance metrics
_ CPU utilization, disk reads, disk writes, network bytes, …
_ Free at 5 minute granularity; 1 minute available at additional cost
_ Accessible via the AWS Management Console
[ 3. Instance Metrics ]
82.
83. _ Monitors a metric and triggers when alarm threshold is breached
_ Sends a Simple Notification Service (SNS) message (email, sms, …)
_ Alarms can be configured on any of the EC2 instance metrics
[ 3. Instance Alarms ]
88. 1) Client interfaces
2) Documentation resources
3) Developer Support
[ Documentation and Support ]
89. _ EC2 API Tools provide support for command-line scripting
_ AWS SDKs provide library support for several languages
_ EC2 APIs provide raw access to EC2 resources
_ Use one of more of the above to build your application
[ 1. Client Interfaces ]
90. _ http://aws.amazon.com/ec2
_ EC2 Getting Started Guide provides a good walk through
_ EC2 User Guide provides detailed information on all concepts
[ 2. Documentation ]
91. _ Provide support to customers using Amazon EC2
_ Staffed by a global team of support professionals
_ Provide free support for instances with a system impairment
_ Paid support options include assistance with best practices
[ 3. Developer Support ]