SlideShare a Scribd company logo
1 of 111
Download to read offline
Masterclass
Elastic Compute Cloud
Ryan Shuttleworth – Technical Evangelist
             @ryanAWS
Masterclass

                       A technical deep dive beyond the basics
Help educate you on how to get the best from AWS technologies
         Show you how things work and how to get things done
                          Broaden your knowledge in ~45 mins
Amazon EC2

    On-demand compute to run application workloads
              Easy come easy go – disposable resource
We provide the infrastructure, you decide what you run
Complete control


Elastic capacity                        Flexible



                   What is EC2?
    Reliable                            Secure

                       Inexpensive
Elastic capacity
                                Customer 1   Customer 2
                                                                     …   Customer n



                                                     Hypervisor
                   Securely
                                                  Virtual Interfaces
                   segregated
                                Customer 1
                                 Security
                                             Customer 2
                                              Security               …   Customer n
                                                                          Security
  Shared                         Groups       Groups                      Groups

                                                          Firewall
environment
                                                 Physical Interfaces
Elastic capacity
                                Customer 1   Customer 2
                                                                     …   Customer n



                                                     Hypervisor
                   Securely
                                                  Virtual Interfaces
                   segregated
                                Customer 1
                                 Security
                                             Customer 2
                                              Security               …   Customer n
                                                                          Security
  Shared                         Groups       Groups                      Groups

                                                          Firewall
environment
                                                 Physical Interfaces
AMI


Amazon Machine
    Image
Instance

    AMI


Amazon Machine      Running or
    Image        Stopped machine
EC2




                     Instance
                                   VPC
    AMI


Amazon Machine      Running or
    Image        Stopped machine
EC2




                     Instance
                                   VPC
    AMI


                                   AZ
Amazon Machine      Running or
    Image        Stopped machine




                                         Region
EC2                  EC2




                     Instance
                                   VPC                  VPC
    AMI


                                   AZ             Availability Zone
Amazon Machine      Running or
    Image        Stopped machine




                                         Region
EC2                         EC2




                     Instance
                                         VPC                         VPC
    AMI
                                   EBS    EBS   EBS            EBS    EBS    EBS

                                         AZ                    Availability Zone
Amazon Machine      Running or
    Image        Stopped machine




                                                      Region
EC2                           EC2




                     Instance
                                         VPC                           VPC
    AMI
                                   EBS    EBS     EBS            EBS    EBS      EBS

                                         AZ                      Availability Zone
Amazon Machine      Running or
    Image        Stopped machine
                                                EBS
                                                                             S3 Buckets
                                                Snapshots
                                                            S3

                                                        Region
Instance
Unit of control



Instance   Unit of scale



           Unit of resilience
Unit of control



Your stack   Instance   Unit of scale



                        Unit of resilience
Instance
                       Unit of control


Scale out   Instance

                       Unit of scale
            Instance



                       Unit of resilience
            Instance
Instance
           Unit of control


Instance

           Unit of scale
Instance



           Unit of resilience
Instance
Instance
           Unit of control


Instance

           Unit of scale
Instance



           Unit of resilience
Instance
Instance
           Unit of control


Instance

           Unit of scale



           Unit of resilience
Instance
Instance
           Unit of control


Instance

           Unit of scale
Instance



           Unit of resilience
Instance
Instance types
Choose the right unit for your workload
High I/O 4XL 60.5 GB                                     High Storage 8XL 117 GB                    Hi-Mem Cluster Compute 8XL
                                         35 EC2 Compute Units                                     35 EC2 Compute Units,                      244 GB
                                         16 virtual cores                                         24 * 2 TB ephemeral drives                 88 EC2 Compute Units
                                         2*1024 GB SSD-based local instance storage
              256                                                                                 10 GB Ethernet                             16 virtual cores
                                                                                                                                             240 GB SSD

                                                                  Hi-Mem 4XL 68.4 GB
                                                                  26 EC2 Compute Units

              128                                                 8 virtual cores
                                                                                                                       10 GB
                                                   Hi-Mem 2XL 34.2 GB
                                                   13 EC2 Compute Units                                            Inter-Instance              Cluster Compute 8XL 60.5 GB
                                                                                                                                               88 EC2 Compute Units
              64                                   4 virtual cores

                                   Hi-Mem XL 17.1 GB
                                                                                                                      Network                  Cluster Compute 4XL 23 GB
                                   6.5 EC2 Compute Units                                                                                       33.5 EC2 Compute Units

              32                   2 virtual cores
Memory (GB)




                                                                                                                                               Cluster GPU 4XL 22 GB
                                                                                                                                               33.5 EC2 Compute Units,
                                              Extra Large 15 GB
                                                                                                                                               2 x NVIDIA Tesla “Fermi”
              16                              8 EC2 Compute Units
                                              4 virtual cores                               M3 XL 15 GB               M3 2XL 30 GB
                                                                                                                                               M2050 GPUs

                                                                                            13 EC2 Compute Units      26 EC2 Compute Units
                                                                                            4 virtual cores           8 virtual cores
                        Medium 3.7 GB,                                                      EBS storage only          EBS storage only
              8         2 EC2 Compute Units
                        1 virtual core
                                                                      Large 7.5 GB
                                                                      4 EC2 Compute Units                               High-CPU XL 7 GB

              4                                                       2 virtual cores                                   20 EC2 Compute Units
                                                                                                                        8 virtual cores
                    Small 1.7 GB,                                                        High-CPU Med 1.7 GB
                    1 EC2 Compute Unit                                                   5 EC2 Compute Units
                    1 virtual core
              2                               Micro 613 MB
                                                                                         2 virtual cores


                                              Up to 2 ECUs (for
                                              short bursts)

              1
                            1               2              4           8    16     32                                   64           128             256
                                                                   EC2 Compute Units
Start small
 Easy to up-size
AMIs


     Amazon                     Community                   Your machine
    maintained                  maintained                     images

Set of Linux and Windows    Images published by other   AMIs you have created from
          images                   AWS users                  EC2 instances
Kept up to date by Amazon   Managed and maintained by   Can be kept private or shared
      in each region          Marketplace partners          with other accounts
http://aws.amazon.com/amazon-linux-ami/
AMIs



     Linux            Enterprise Linux         Windows


Small instance from   Small instance from   Small instance from
 $0.060 per hour       $0.120 per hour       $0.115 per hour


                      Small instance from
                       $0.090 per hour
Instance types


    On-demand instances

   Unix/Linux instances start at
           $0.02/hour

   Pay as you go for compute power

        Low cost and flexibility

 Pay only for what you use, no up-front
  commitments or long-term contracts

               Use Cases:

 Applications with short term, spiky, or
       unpredictable workloads;

  Application development or testing
Instance types


    On-demand instances                             Reserved instances

   Unix/Linux instances start at                       1- or 3-year terms
           $0.02/hour
                                           Pay low up-front fee, receive significant hourly
   Pay as you go for compute power                            discount

        Low cost and flexibility                      Low Cost / Predictability

 Pay only for what you use, no up-front     Helps ensure compute capacity is available
  commitments or long-term contracts                      when needed

               Use Cases:
                                                             Use Cases:
 Applications with short term, spiky, or
       unpredictable workloads;             Applications with steady state or predictable
                                                                usage
  Application development or testing
                                            Applications that require reserved capacity,
                                                    including disaster recovery
Instance types                                                                                     Heavy utilization RI

                                                                                                        > 80% utilization
                                                                                                      Lower costs up to 58%
    On-demand instances                             Reserved instances                        Use Cases: Databases, Large Scale HPC,
                                                                                                Always-on infrastructure, Baseline

   Unix/Linux instances start at                       1- or 3-year terms
           $0.02/hour
                                           Pay low up-front fee, receive significant hourly
   Pay as you go for compute power                            discount

        Low cost and flexibility                      Low Cost / Predictability

 Pay only for what you use, no up-front     Helps ensure compute capacity is available
  commitments or long-term contracts                      when needed

               Use Cases:
                                                             Use Cases:
 Applications with short term, spiky, or
       unpredictable workloads;             Applications with steady state or predictable
                                                                usage
  Application development or testing
                                            Applications that require reserved capacity,
                                                    including disaster recovery
Instance types                                                                                       Heavy utilization RI

                                                                                                          > 80% utilization
                                                                                                       Lower costs up to 58%
    On-demand instances                             Reserved instances                         Use Cases: Databases, Large Scale HPC,
                                                                                                 Always-on infrastructure, Baseline

   Unix/Linux instances start at                       1- or 3-year terms
           $0.02/hour
                                           Pay low up-front fee, receive significant hourly         Medium utilization RI
   Pay as you go for compute power                            discount

        Low cost and flexibility                      Low Cost / Predictability                          41-79% utilization
                                                                                                       Lower costs up to 49%
 Pay only for what you use, no up-front     Helps ensure compute capacity is available        Use Cases: Web applications, many heavy
  commitments or long-term contracts                      when needed                         processing tasks, running much of the time

               Use Cases:
                                                             Use Cases:
 Applications with short term, spiky, or
       unpredictable workloads;             Applications with steady state or predictable
                                                                usage
  Application development or testing
                                            Applications that require reserved capacity,
                                                    including disaster recovery
Instance types                                                                                       Heavy utilization RI

                                                                                                          > 80% utilization
                                                                                                       Lower costs up to 58%
    On-demand instances                             Reserved instances                         Use Cases: Databases, Large Scale HPC,
                                                                                                 Always-on infrastructure, Baseline

   Unix/Linux instances start at                       1- or 3-year terms
           $0.02/hour
                                           Pay low up-front fee, receive significant hourly         Medium utilization RI
   Pay as you go for compute power                            discount

        Low cost and flexibility                      Low Cost / Predictability                          41-79% utilization
                                                                                                       Lower costs up to 49%
 Pay only for what you use, no up-front     Helps ensure compute capacity is available        Use Cases: Web applications, many heavy
  commitments or long-term contracts                      when needed                         processing tasks, running much of the time

               Use Cases:
                                                             Use Cases:
 Applications with short term, spiky, or                                                              Light utilization RI
       unpredictable workloads;             Applications with steady state or predictable
                                                                usage
  Application development or testing                                                                     15-40% utilization
                                            Applications that require reserved capacity,               Lower costs up to 34%
                                                    including disaster recovery
                                                                                               Use Cases: Disaster Recovery, Weekly /
                                                                                               Monthly reporting, Elastic Map Reduce
Instance types


    On-demand instances                             Reserved instances                                    Spot instances

   Unix/Linux instances start at                       1- or 3-year terms                           Bid on unused EC2 capacity
           $0.02/hour
                                           Pay low up-front fee, receive significant hourly       Spot Price based on supply/demand,
   Pay as you go for compute power                            discount                                 determined automatically

        Low cost and flexibility                      Low Cost / Predictability               Cost / Large Scale, dynamic workload handling

 Pay only for what you use, no up-front     Helps ensure compute capacity is available
  commitments or long-term contracts                      when needed
                                                                                                               Use Cases:
               Use Cases:
                                                             Use Cases:                       Applications with flexible start and end times
 Applications with short term, spiky, or
       unpredictable workloads;             Applications with steady state or predictable     Applications only feasible at very low compute
                                                                usage                                              prices
  Application development or testing
                                            Applications that require reserved capacity,
                                                    including disaster recovery
Launch an instance
Commands, keypairs & security groups
Region
Instance size
     AMI
   Key pair
Security group
key pairs
secure access
Public Key
   Inserted by Amazon into
    each EC2 instance that
          you launch




                        EC2
                        Instance
Comms secured
with private key


          Private Key
   Downloaded and stored
          by you
Keypairs & Secrets



   Keypairs                Credentials                   x.509


Used to authenticate   Access key and secret key   Used to authenticate
when accessing and       used to authenticate       against some APIs
      instance               against APIs
security groups
  instance firewalling
Port 22                    Name
                    Security Group
           (SSH)                     Description
Port 80                              Protocol
(HTTP)                               Port range
                                     IP Address, range, or
                                     another security group




             instance
PS C:> New-EC2Instances
               -ImageId ami-269dbb63
               -KeyName mykey
               -SecurityGroupId sg-9cf9e5d9
               -InstanceType t1.micro
$>   ec2-run-instances ami-54cf5c3d
     --instance-count 2
     --group webservers
     --key mykey
     --instance-type m1.small
>>> import boto.ec2
>>> conn = boto.ec2.connect_to_region("us-east-1")
>>> conn.run_instances(
        'ami-54cf5c3d',
        key_name='mykey',
        instance_type='m1.small',
        security_groups=['webservers'])
Wait a minute
I want to use those tools too…
IAM Roles and EC2 tools

1. Start an EC2 Linux instance

2. Assign an IAM role at launch time:



3. Sets up all the tools you need & manages
                                               {
   API access credentials                          "Statement": [
                                                     {
1. Up and running with CLI tools in a couple           "Effect": "Allow",
                                                       "NotAction": "iam:*",
   of minutes – just SSH on and use
                                                       "Resource": "*"
                                                     }
2. Terminate/stop instance when you are            ]
   done                                        }
Now you have tools
      Try this…
$>   ec2-run-instances ami-54cf5c3d
     --instance-count 1
$>   ec2-run-instances ami-54cf5c3d
                  --instance-count 1

                  --group webservers
                  --key mykey
                  --instance-type m1.small
What about all
   this?
$>   ec2-run-instances ami-54cf5c3d
                --instance-count 1

                --group Default
                --key NONE
                --instance-type default(m1.small)
Defaults
$>   ec2-run-instances ami-54cf5c3d
     --instance-count 1

     --group Default
     --key NONE
     --instance-type default(m1.small)
Instances don’t need keypairs
But how do you configure it if you can’t log
                onto it?
Bootstrapping



  Bake an AMI

  Start an instance
Configure the instance
 Create an AMI from
    your instance
 Start new ones from
        the AMI
Bootstrapping



  Bake an AMI               vs       Configure dynamically

  Start an instance                       Launch an instance
Configure the instance                   Use metadata service
                                           and cloud-init to
 Create an AMI from
                                          perform actions on
    your instance
                                           instance when it
 Start new ones from                           launches
        the AMI
Bootstrapping



  Bake an AMI                 +       Configure dynamically

Build your base images                    Use bootstrapping to
  and setup custom                             pass custom
 initialisation scripts                     information in and
                                           perform post launch
Maintain your ‘golden’
                                          tasks like pulling code
        base
                                                 from SVN
Bootstrapping



Bake an AMI                         Configure dynamically




       Time consuming
 configuration (startup time)
  Static configurations (less
    change management)
Bootstrapping



Bake an AMI               Configure dynamically




                         Continuous deployment
                              (latest code)
                        Environment specific (dev-
                               test-prod)
Goal is bring an instance up in a
             useful state
The balance will vary depending upon your application
Instance   User
 request   data
Instance   User   Meta-data
 request   data    service
Instance   User   Meta-data
 request   data    service




                   Instance
Shell script in user-data will be executed on launch:


#!/bin/sh
yum -y install httpd php mysql php-mysql
chkconfig httpd on
/etc/init.d/httpd start
Amazon Windows EC2Config Service executes user-
data on launch:
 <script>dir > c:test.log</script>

 <powershell>any command that you can run</powershell>

AWS Powershell Tools (use IAM roles as before…)
 <powershell>
    Read-S3Object -BucketName myS3Bucket
    -Key myFolder/myFile.zip
    -File c:destinationFile.zip
 </powershell>

                          63
Automation
                       Less fingers, less mistakes


  Security                                                Availability
Instances locked
                                                          Drive higher
down by default
                                                      availability with self-
                                                             healing

                     Why do this?
    Flexible                                             Efficiency
Shell, Powershell,                                    Audit and manage
CloudFormation,                                      your estate with less
  Chef, Puppet,                 Scale                   time & effort
   OpsWorks              Manage large scale
                        deployments and drive
                             autoscaling
Some does and don’ts



           Do

     Use IAM roles
  Go keyless if you can
Strike a balance between
    AMI and dynamic
      bootstrapping
Some does and don’ts



           Do                                       Don’t

     Use IAM roles                          Put your API access keys
                                          into code (and then publish
  Go keyless if you can
                                            to GIT) or bake into AMIs
Strike a balance between                           (and share)
    AMI and dynamic
      bootstrapping                                  
Block storage
Understanding instance storage vs EBS
Instance Storage
 Local ‘on host’ disk
      volumes
Data dependent upon
  instance lifecycle
Instance Storage        VS    Elastic Block Storage
 Local ‘on host’ disk        Network attached optimised
      volumes                      block storage
Data dependent upon             Data independent of
  instance lifecycle             instance lifecycle
Instance A
Instance Storage                                                   Instance D

                                  Instance B
 Local ‘on host’ disk
      volumes                                                      Instance E
                                  Instance C
Data dependent upon                                                Instance F
  instance lifecycle             Instance Store                   Instance Store



                         eph0    eph1    eph2     eph3    eph0    eph1    eph2     eph3

                        Host 1                           Host 2
If an instance reboots (intentionally or
Instance Storage        unintentionally), data in the instance store
                        persists
 Local ‘on host’ disk
      volumes
                        Data on instance store volumes is lost under
Data dependent upon     the following circumstances:
  instance lifecycle
                        • Failure of an underlying drive
                        • Stopping an Amazon EBS-backed instance
                        • Terminating an instance
Options
Differing types of
instance storage
Options
Differing types of
instance storage
One or more ephemeral
  (temporary) drives
   (instance storage)
                           One or more EBS
                          (persistent) drives
                                                 EBS snapshots
                                                (backup images)
                                                                   Elastic Block Storage
                                                                  Network attached optimised
     Workspace                                                          block storage
                    Network
                                                                     Data independent of
                                                         EBS
                                                       snapshot
                                                                      instance lifecycle
     Hypervisor

        EC2                      EBS                   S3
Boot cycle                       Elastic Block Storage
                                Network attached optimised
                                      block storage
                                   Data independent of
                       EBS
                     snapshot
                                    instance lifecycle
  Hypervisor

     EC2       EBS   S3
Boot cycle                       Elastic Block Storage
                                Network attached optimised
  Workspace                           block storage
                                   Data independent of
                       EBS
                     snapshot
                                    instance lifecycle
  Hypervisor

     EC2       EBS   S3
Boot cycle                       Elastic Block Storage
                                Network attached optimised
  Workspace                           block storage
                                   Data independent of
                  EBS
                snapshot
                                    instance lifecycle
  Hypervisor

     EC2       EBS         S3
Boot cycle                           Elastic Block Storage
                                    Network attached optimised
  Workspace                               block storage
               Network
                                       Data independent of
                                        instance lifecycle
  Hypervisor

     EC2                 EBS   S3
EBS Persistence

EBS volume is off-instance storage
You pay for the volume usage as long as the data
persists
1. By default, EBS volumes that are attached to a running instance
   automatically detach from the instance with their data intact when
   that instance is terminated

2. By default, EBS volumes that are created and attached to an instance
   at launch are deleted when that instance is terminated. You can
   modify this behavior by changing the value of the flag
   DeleteOnTermination to false when you launch the instance.
Elastic Load Balancer
 Spreading the load and fronting EC2
A regional service
Load balance across availability zones
Elastic Load Balancer




Instance   Instance   Instance      Instance        Instance   Instance


 Availability Zone    Availability Zone             Availability Zone

                                 Region
Elastic Load Balancing



       Spread                    Offload                 Health check
   Go small and wide        SSL processing on ELB   Choose the right healthcheck
Balance resources across    Remove load from EC2               point
          AZs                    instances              Check whole layers
1. Persistent HTTP connections – enable them and ELB
   to Server will be optimized
2. Never address underlying IP – always DNS name
    • There’s a set behind an ELB and real clients spread
      across them
    • They will change as the ELB scales to keep ahead
      of demand
3. If you span ELB across AZs have an instance in all Azs
4. De-register instances from an ELB before terminating
AutoScaling
Automate EC2 commissioning and decommisioning
Launch Configuration               Auto-Scaling Group                  Auto-Scaling Policy


Describes what Auto Scaling         Auto Scaling managed             Parameters for performing an
  will create when adding         grouping of EC2 instances              Auto Scaling action
          Instances
                                    Automatic health check to        Scale Up/Down and by how much
             AMI
                                       maintain pool size
        Instance Type                                                   ChangeInCapacity (+/- #)
       Security Group                                                      ExactCapacity (#)
                                Automatically scale the number of
      Instance Key Pair                                                 ChangeInPercent (+/- %)
                                 instances by policy – Min, Max,
                                             Desired
    Only one active launch                                                Cool Down (seconds)
    configuration at a time
                                 Automatic Integration with ELB
                                                                        Policy can be triggered by
  Auto Scaling will terminate                                              CloudWatch events
                                Automatic distribution & balancing
   instances with old launch
                                           across AZs
       configuration first
            rolling update
Create a launch configuration:

  as-create-launch-config
     --image-id ami-54cf5c3d
     --instance-type m1.small
     --key mykey
     --group webservers
     --launch-config 101-launch-config
Create a launch configuration:

  as-create-launch-config
     --image-id ami-54cf5c3d
     --instance-type m1.small            The usual
     --key mykey                         suspects
     --group webservers
     --launch-config 101-launch-config
Create an auto scaling group:

as-create-auto-scaling-group 101-as-group
   --availability-zones us-east-1a us-east-1b us-east-1c
   --launch-configuration 101-launch-config
   --load-balancers myELB
   --max-size 5
   --min-size 1
Create an auto scaling group:

as-create-auto-scaling-group 101-as-group
   --availability-zones us-east-1a us-east-1b us-east-1c
   --launch-configuration 101-launch-config
   --load-balancers myELB
   --max-size 5
   --min-size 1             What’s going to launch
Create an auto scaling group:

as-create-auto-scaling-group 101-as-group
   --availability-zones us-east-1a us-east-1b us-east-1c
   --launch-configuration 101-launch-config
   --load-balancers myELB
   --max-size 5
   --min-size 1
                   Integrate with an ELB?
Create an auto-scaling policy (scale up):

as-put-scaling-policy 101ScaleUpPolicy
   --auto-scaling-group 101-as-group
   --adjustment=1
   --type ChangeInCapacity
   --cooldown 300
Create an auto-scaling policy (scale up):

as-put-scaling-policy 101ScaleUpPolicy
   --auto-scaling-group 101-as-group
   --adjustment=1
   --type ChangeInCapacity
   --cooldown 300



        Period before another action will take place
                        (Damper)
Create an auto-scaling policy (scale down):

as-put-scaling-policy 101ScaleDownPolicy
   --auto-scaling-group 101-as-group
   "--adjustment=-1"
   --type ChangeInCapacity
   --cooldown 300
CloudWatch
Know what is going on
Cloud Watch Alarm:           Takes action:


     CPU >= 50% for 5 mins           Scale up policy




     CPU < 30% for 10 mins           Scale down policy
Cloud Watch Alarm:           Takes action:


     CPU >= 50% for 5 mins           Scale up policy
Cloud Watch Alarm:               Takes action:


     CPU >= 50% for 5 mins               Deliver message to Q




                             SNS Topic     Post to endpoint
     CPU < 30% for 10 mins



                                              Send Email
Cloud Watch Alarm:           Takes action:


     CPU >= 50% for 5 mins
                                SNS Topic
Comprehensive
                  Billing, technical, aggregate &
                           custom metrics

    SNS                                                  Alarms
Integration                                         Set custom alarms
Push alarms to                                       and thresholds
  SNS topics


                 CloudWatch
     HTTP                                              Email
  Poke HTTP                                         integration
 endpoints for                                        Send alarm
 custom alarm         Custom Metrics                notifications to
    actions       Write your own metrics in via         emails
                              SDKs
Other topics to look at:
Other topics…



Resource tagging               Route 53              Rolling deployments
Tag resources like EC2   Front EC2 and ELBs with     Use Route 53 and ELBs to do
and have it appear on    Route 53 for control over    rolling deployments, A/B
    billing reports                DNS                          testing
Other topics…



     Beanstalk                 OpsWorks                CloudFormation
   Manage an entire       Manage stacks as layers    Template everything from
 autoscaling stack for      and implement Chef      configuration of CloudWatch
popular containers such   recipes to automate EC2     alarms, SNS topics, EC2
  as ruby, python etc          configuration                 instances
Summary
Stop doing these:
       Provisioning and fixing servers
    Treating compute as physical things
Thinking of compute as a finite commitment
Elasticity
                            Stateless autoscaling      Automation
       Security                 applications        Create instances when
Build systems secure by
                                                     you need them, drop
         default
                                                       them when not




              and start doing these

  Replace not fix                                       Be cost aware
Build from scratch, don’t    Unconstrained           Tag resources, play with
      fix something                                       instance types
                               Say goodbye to
                             traditional capacity
                                   planning
Watch a demo here:
http://youtu.be/kMExnVKhmYc
aws.amazon.com

More Related Content

What's hot

Overview of Amazon Web Services
Overview of Amazon Web ServicesOverview of Amazon Web Services
Overview of Amazon Web Services
Harish Ganesan
 

What's hot (20)

Amazon S3 - Masterclass - Pop-up Loft Tel Aviv
Amazon S3 - Masterclass - Pop-up Loft Tel AvivAmazon S3 - Masterclass - Pop-up Loft Tel Aviv
Amazon S3 - Masterclass - Pop-up Loft Tel Aviv
 
Amazon services ec2
Amazon services ec2Amazon services ec2
Amazon services ec2
 
AWS basics session
AWS basics sessionAWS basics session
AWS basics session
 
AWS Compute Services
AWS Compute ServicesAWS Compute Services
AWS Compute Services
 
Amazon ec2
Amazon ec2Amazon ec2
Amazon ec2
 
Understanding The Benefits Of Amazon EC2
Understanding The Benefits Of Amazon EC2Understanding The Benefits Of Amazon EC2
Understanding The Benefits Of Amazon EC2
 
EC2 Container Service - Distributed Applications at Scale - Pop-up Loft Tel Aviv
EC2 Container Service - Distributed Applications at Scale - Pop-up Loft Tel AvivEC2 Container Service - Distributed Applications at Scale - Pop-up Loft Tel Aviv
EC2 Container Service - Distributed Applications at Scale - Pop-up Loft Tel Aviv
 
Enterprise Grade SQL Server Deployments in AWS
Enterprise Grade SQL Server Deployments in AWSEnterprise Grade SQL Server Deployments in AWS
Enterprise Grade SQL Server Deployments in AWS
 
AWS Elastic Compute Cloud (EC2)
AWS Elastic Compute Cloud (EC2) AWS Elastic Compute Cloud (EC2)
AWS Elastic Compute Cloud (EC2)
 
Elasticsearch
ElasticsearchElasticsearch
Elasticsearch
 
Scaling up to your first 10 million users - Pop-up Loft Tel Aviv
Scaling up to your first 10 million users - Pop-up Loft Tel AvivScaling up to your first 10 million users - Pop-up Loft Tel Aviv
Scaling up to your first 10 million users - Pop-up Loft Tel Aviv
 
Overview of Amazon Web Services
Overview of Amazon Web ServicesOverview of Amazon Web Services
Overview of Amazon Web Services
 
Introduction to Amazon EC2
Introduction to Amazon EC2Introduction to Amazon EC2
Introduction to Amazon EC2
 
Building an HPC Cluster in 10 Minutes
Building an HPC Cluster in 10 MinutesBuilding an HPC Cluster in 10 Minutes
Building an HPC Cluster in 10 Minutes
 
Your First Week with Amazon EC2
Your First Week with Amazon EC2Your First Week with Amazon EC2
Your First Week with Amazon EC2
 
AWS Webcast - Implementing Windows and SQL Server for High Availability on AWS
AWS Webcast - Implementing Windows and SQL Server for High Availability on AWSAWS Webcast - Implementing Windows and SQL Server for High Availability on AWS
AWS Webcast - Implementing Windows and SQL Server for High Availability on AWS
 
Get the Most Bang for Your Buck with #EC2 #WINNING
Get the Most Bang for Your Buck with #EC2 #WINNINGGet the Most Bang for Your Buck with #EC2 #WINNING
Get the Most Bang for Your Buck with #EC2 #WINNING
 
Introduction on Amazon EC2
Introduction on Amazon EC2Introduction on Amazon EC2
Introduction on Amazon EC2
 
VMware and AWS together (June 2017)
VMware and AWS together (June 2017)VMware and AWS together (June 2017)
VMware and AWS together (June 2017)
 
Amazon Web Service EC2 & S3
Amazon Web Service EC2 & S3Amazon Web Service EC2 & S3
Amazon Web Service EC2 & S3
 

Similar to Masterclass Webinar: Amazon EC2

Disaster Recovery with the AWS Cloud
Disaster Recovery with the AWS CloudDisaster Recovery with the AWS Cloud
Disaster Recovery with the AWS Cloud
Amazon Web Services
 
Masterworks talk on Big Data and the implications of petascale science
Masterworks talk on Big Data and the implications of petascale scienceMasterworks talk on Big Data and the implications of petascale science
Masterworks talk on Big Data and the implications of petascale science
Deepak Singh
 
Netflix Moving To Cloud
Netflix Moving To CloudNetflix Moving To Cloud
Netflix Moving To Cloud
Hien Luu
 
Designing Fault Tolerant Applications on AWS - Janakiram MSV
Designing Fault Tolerant Applications on AWS - Janakiram MSVDesigning Fault Tolerant Applications on AWS - Janakiram MSV
Designing Fault Tolerant Applications on AWS - Janakiram MSV
Amazon Web Services
 
Aws security overview q3 2010 v2
Aws security overview q3 2010 v2Aws security overview q3 2010 v2
Aws security overview q3 2010 v2
ReadMaloney
 
Building Fault Tolerant Applications in the cloud - AWS Summit 2012 - NYC
Building Fault Tolerant Applications in the cloud - AWS Summit 2012 - NYC Building Fault Tolerant Applications in the cloud - AWS Summit 2012 - NYC
Building Fault Tolerant Applications in the cloud - AWS Summit 2012 - NYC
Amazon Web Services
 
Ram chinta hug-20120922-v1
Ram chinta hug-20120922-v1Ram chinta hug-20120922-v1
Ram chinta hug-20120922-v1
Ram Chinta
 
AWS Summit 2011: AWS 101 Overview
AWS Summit 2011: AWS 101 OverviewAWS Summit 2011: AWS 101 Overview
AWS Summit 2011: AWS 101 Overview
Amazon Web Services
 
13h00 aws 2012-fault_tolerant_applications
13h00   aws 2012-fault_tolerant_applications13h00   aws 2012-fault_tolerant_applications
13h00 aws 2012-fault_tolerant_applications
infolive
 
Getting Started in the AWS Cloud, Glen Robinson, Solutions Architect, AWS
Getting Started in the AWS Cloud, Glen Robinson, Solutions Architect, AWSGetting Started in the AWS Cloud, Glen Robinson, Solutions Architect, AWS
Getting Started in the AWS Cloud, Glen Robinson, Solutions Architect, AWS
Amazon Web Services
 
Getting started in the AWS Cloud, Glen Robinson, Solutions Architect, AWS
Getting started in the AWS Cloud, Glen Robinson, Solutions Architect, AWSGetting started in the AWS Cloud, Glen Robinson, Solutions Architect, AWS
Getting started in the AWS Cloud, Glen Robinson, Solutions Architect, AWS
Amazon Web Services
 
AWS Summit 2011: Application Security Best Practices
AWS Summit 2011: Application Security Best PracticesAWS Summit 2011: Application Security Best Practices
AWS Summit 2011: Application Security Best Practices
Amazon Web Services
 

Similar to Masterclass Webinar: Amazon EC2 (20)

セキュリティを意識したAWS使用法
セキュリティを意識したAWS使用法セキュリティを意識したAWS使用法
セキュリティを意識したAWS使用法
 
Disaster Recovery with the AWS Cloud
Disaster Recovery with the AWS CloudDisaster Recovery with the AWS Cloud
Disaster Recovery with the AWS Cloud
 
NHGRI Cloud Computing talk
NHGRI Cloud Computing talkNHGRI Cloud Computing talk
NHGRI Cloud Computing talk
 
Masterworks talk on Big Data and the implications of petascale science
Masterworks talk on Big Data and the implications of petascale scienceMasterworks talk on Big Data and the implications of petascale science
Masterworks talk on Big Data and the implications of petascale science
 
Security Overview
Security Overview Security Overview
Security Overview
 
Netflix Moving To Cloud
Netflix Moving To CloudNetflix Moving To Cloud
Netflix Moving To Cloud
 
Keynote - Werner Vogels
Keynote - Werner Vogels Keynote - Werner Vogels
Keynote - Werner Vogels
 
Designing Fault Tolerant Applications on AWS - Janakiram MSV
Designing Fault Tolerant Applications on AWS - Janakiram MSVDesigning Fault Tolerant Applications on AWS - Janakiram MSV
Designing Fault Tolerant Applications on AWS - Janakiram MSV
 
Aws security overview q3 2010 v2
Aws security overview q3 2010 v2Aws security overview q3 2010 v2
Aws security overview q3 2010 v2
 
Aws Security Overview
Aws Security OverviewAws Security Overview
Aws Security Overview
 
Building Fault Tolerant Applications in the cloud - AWS Summit 2012 - NYC
Building Fault Tolerant Applications in the cloud - AWS Summit 2012 - NYC Building Fault Tolerant Applications in the cloud - AWS Summit 2012 - NYC
Building Fault Tolerant Applications in the cloud - AWS Summit 2012 - NYC
 
Ram chinta hug-20120922-v1
Ram chinta hug-20120922-v1Ram chinta hug-20120922-v1
Ram chinta hug-20120922-v1
 
AWS Summit 2011: AWS 101 Overview
AWS Summit 2011: AWS 101 OverviewAWS Summit 2011: AWS 101 Overview
AWS Summit 2011: AWS 101 Overview
 
Fault Tolerant Applications on AWS
Fault Tolerant Applications on AWSFault Tolerant Applications on AWS
Fault Tolerant Applications on AWS
 
13h00 aws 2012-fault_tolerant_applications
13h00   aws 2012-fault_tolerant_applications13h00   aws 2012-fault_tolerant_applications
13h00 aws 2012-fault_tolerant_applications
 
Getting Started in the AWS Cloud, Glen Robinson, Solutions Architect, AWS
Getting Started in the AWS Cloud, Glen Robinson, Solutions Architect, AWSGetting Started in the AWS Cloud, Glen Robinson, Solutions Architect, AWS
Getting Started in the AWS Cloud, Glen Robinson, Solutions Architect, AWS
 
Getting started in the AWS Cloud, Glen Robinson, Solutions Architect, AWS
Getting started in the AWS Cloud, Glen Robinson, Solutions Architect, AWSGetting started in the AWS Cloud, Glen Robinson, Solutions Architect, AWS
Getting started in the AWS Cloud, Glen Robinson, Solutions Architect, AWS
 
AWS Summit 2011: Application Security Best Practices
AWS Summit 2011: Application Security Best PracticesAWS Summit 2011: Application Security Best Practices
AWS Summit 2011: Application Security Best Practices
 
Jeff barr Seattle_interactive_2011_q4
Jeff barr Seattle_interactive_2011_q4Jeff barr Seattle_interactive_2011_q4
Jeff barr Seattle_interactive_2011_q4
 
2010/03/25 AWS User Group Berlin
2010/03/25 AWS User Group Berlin2010/03/25 AWS User Group Berlin
2010/03/25 AWS User Group Berlin
 

More from Amazon Web Services

Tools for building your MVP on AWS
Tools for building your MVP on AWSTools for building your MVP on AWS
Tools for building your MVP on AWS
Amazon Web Services
 
How to Build a Winning Pitch Deck
How to Build a Winning Pitch DeckHow to Build a Winning Pitch Deck
How to Build a Winning Pitch Deck
Amazon Web Services
 
Building a web application without servers
Building a web application without serversBuilding a web application without servers
Building a web application without servers
Amazon Web Services
 
AWS_HK_StartupDay_Building Interactive websites while automating for efficien...
AWS_HK_StartupDay_Building Interactive websites while automating for efficien...AWS_HK_StartupDay_Building Interactive websites while automating for efficien...
AWS_HK_StartupDay_Building Interactive websites while automating for efficien...
Amazon Web Services
 

More from Amazon Web Services (20)

Come costruire servizi di Forecasting sfruttando algoritmi di ML e deep learn...
Come costruire servizi di Forecasting sfruttando algoritmi di ML e deep learn...Come costruire servizi di Forecasting sfruttando algoritmi di ML e deep learn...
Come costruire servizi di Forecasting sfruttando algoritmi di ML e deep learn...
 
Big Data per le Startup: come creare applicazioni Big Data in modalità Server...
Big Data per le Startup: come creare applicazioni Big Data in modalità Server...Big Data per le Startup: come creare applicazioni Big Data in modalità Server...
Big Data per le Startup: come creare applicazioni Big Data in modalità Server...
 
Esegui pod serverless con Amazon EKS e AWS Fargate
Esegui pod serverless con Amazon EKS e AWS FargateEsegui pod serverless con Amazon EKS e AWS Fargate
Esegui pod serverless con Amazon EKS e AWS Fargate
 
Costruire Applicazioni Moderne con AWS
Costruire Applicazioni Moderne con AWSCostruire Applicazioni Moderne con AWS
Costruire Applicazioni Moderne con AWS
 
Come spendere fino al 90% in meno con i container e le istanze spot
Come spendere fino al 90% in meno con i container e le istanze spot Come spendere fino al 90% in meno con i container e le istanze spot
Come spendere fino al 90% in meno con i container e le istanze spot
 
Open banking as a service
Open banking as a serviceOpen banking as a service
Open banking as a service
 
Rendi unica l’offerta della tua startup sul mercato con i servizi Machine Lea...
Rendi unica l’offerta della tua startup sul mercato con i servizi Machine Lea...Rendi unica l’offerta della tua startup sul mercato con i servizi Machine Lea...
Rendi unica l’offerta della tua startup sul mercato con i servizi Machine Lea...
 
OpsWorks Configuration Management: automatizza la gestione e i deployment del...
OpsWorks Configuration Management: automatizza la gestione e i deployment del...OpsWorks Configuration Management: automatizza la gestione e i deployment del...
OpsWorks Configuration Management: automatizza la gestione e i deployment del...
 
Microsoft Active Directory su AWS per supportare i tuoi Windows Workloads
Microsoft Active Directory su AWS per supportare i tuoi Windows WorkloadsMicrosoft Active Directory su AWS per supportare i tuoi Windows Workloads
Microsoft Active Directory su AWS per supportare i tuoi Windows Workloads
 
Computer Vision con AWS
Computer Vision con AWSComputer Vision con AWS
Computer Vision con AWS
 
Database Oracle e VMware Cloud on AWS i miti da sfatare
Database Oracle e VMware Cloud on AWS i miti da sfatareDatabase Oracle e VMware Cloud on AWS i miti da sfatare
Database Oracle e VMware Cloud on AWS i miti da sfatare
 
Crea la tua prima serverless ledger-based app con QLDB e NodeJS
Crea la tua prima serverless ledger-based app con QLDB e NodeJSCrea la tua prima serverless ledger-based app con QLDB e NodeJS
Crea la tua prima serverless ledger-based app con QLDB e NodeJS
 
API moderne real-time per applicazioni mobili e web
API moderne real-time per applicazioni mobili e webAPI moderne real-time per applicazioni mobili e web
API moderne real-time per applicazioni mobili e web
 
Database Oracle e VMware Cloud™ on AWS: i miti da sfatare
Database Oracle e VMware Cloud™ on AWS: i miti da sfatareDatabase Oracle e VMware Cloud™ on AWS: i miti da sfatare
Database Oracle e VMware Cloud™ on AWS: i miti da sfatare
 
Tools for building your MVP on AWS
Tools for building your MVP on AWSTools for building your MVP on AWS
Tools for building your MVP on AWS
 
How to Build a Winning Pitch Deck
How to Build a Winning Pitch DeckHow to Build a Winning Pitch Deck
How to Build a Winning Pitch Deck
 
Building a web application without servers
Building a web application without serversBuilding a web application without servers
Building a web application without servers
 
Fundraising Essentials
Fundraising EssentialsFundraising Essentials
Fundraising Essentials
 
AWS_HK_StartupDay_Building Interactive websites while automating for efficien...
AWS_HK_StartupDay_Building Interactive websites while automating for efficien...AWS_HK_StartupDay_Building Interactive websites while automating for efficien...
AWS_HK_StartupDay_Building Interactive websites while automating for efficien...
 
Introduzione a Amazon Elastic Container Service
Introduzione a Amazon Elastic Container ServiceIntroduzione a Amazon Elastic Container Service
Introduzione a Amazon Elastic Container Service
 

Recently uploaded

Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
Joaquim Jorge
 

Recently uploaded (20)

🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘
 
GenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdfGenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdf
 
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
 
Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CV
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day Presentation
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
 
What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of Terraform
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 

Masterclass Webinar: Amazon EC2

  • 1. Masterclass Elastic Compute Cloud Ryan Shuttleworth – Technical Evangelist @ryanAWS
  • 2. Masterclass A technical deep dive beyond the basics Help educate you on how to get the best from AWS technologies Show you how things work and how to get things done Broaden your knowledge in ~45 mins
  • 3. Amazon EC2 On-demand compute to run application workloads Easy come easy go – disposable resource We provide the infrastructure, you decide what you run
  • 4. Complete control Elastic capacity Flexible What is EC2? Reliable Secure Inexpensive
  • 5. Elastic capacity Customer 1 Customer 2 … Customer n Hypervisor Securely Virtual Interfaces segregated Customer 1 Security Customer 2 Security … Customer n Security Shared Groups Groups Groups Firewall environment Physical Interfaces
  • 6. Elastic capacity Customer 1 Customer 2 … Customer n Hypervisor Securely Virtual Interfaces segregated Customer 1 Security Customer 2 Security … Customer n Security Shared Groups Groups Groups Firewall environment Physical Interfaces
  • 8. Instance AMI Amazon Machine Running or Image Stopped machine
  • 9. EC2 Instance VPC AMI Amazon Machine Running or Image Stopped machine
  • 10. EC2 Instance VPC AMI AZ Amazon Machine Running or Image Stopped machine Region
  • 11. EC2 EC2 Instance VPC VPC AMI AZ Availability Zone Amazon Machine Running or Image Stopped machine Region
  • 12. EC2 EC2 Instance VPC VPC AMI EBS EBS EBS EBS EBS EBS AZ Availability Zone Amazon Machine Running or Image Stopped machine Region
  • 13. EC2 EC2 Instance VPC VPC AMI EBS EBS EBS EBS EBS EBS AZ Availability Zone Amazon Machine Running or Image Stopped machine EBS S3 Buckets Snapshots S3 Region
  • 15. Unit of control Instance Unit of scale Unit of resilience
  • 16. Unit of control Your stack Instance Unit of scale Unit of resilience
  • 17. Instance Unit of control Scale out Instance Unit of scale Instance Unit of resilience Instance
  • 18. Instance Unit of control Instance Unit of scale Instance Unit of resilience Instance
  • 19. Instance Unit of control Instance Unit of scale Instance Unit of resilience Instance
  • 20. Instance Unit of control Instance Unit of scale Unit of resilience Instance
  • 21. Instance Unit of control Instance Unit of scale Instance Unit of resilience Instance
  • 22. Instance types Choose the right unit for your workload
  • 23. High I/O 4XL 60.5 GB High Storage 8XL 117 GB Hi-Mem Cluster Compute 8XL 35 EC2 Compute Units 35 EC2 Compute Units, 244 GB 16 virtual cores 24 * 2 TB ephemeral drives 88 EC2 Compute Units 2*1024 GB SSD-based local instance storage 256 10 GB Ethernet 16 virtual cores 240 GB SSD Hi-Mem 4XL 68.4 GB 26 EC2 Compute Units 128 8 virtual cores 10 GB Hi-Mem 2XL 34.2 GB 13 EC2 Compute Units Inter-Instance Cluster Compute 8XL 60.5 GB 88 EC2 Compute Units 64 4 virtual cores Hi-Mem XL 17.1 GB Network Cluster Compute 4XL 23 GB 6.5 EC2 Compute Units 33.5 EC2 Compute Units 32 2 virtual cores Memory (GB) Cluster GPU 4XL 22 GB 33.5 EC2 Compute Units, Extra Large 15 GB 2 x NVIDIA Tesla “Fermi” 16 8 EC2 Compute Units 4 virtual cores M3 XL 15 GB M3 2XL 30 GB M2050 GPUs 13 EC2 Compute Units 26 EC2 Compute Units 4 virtual cores 8 virtual cores Medium 3.7 GB, EBS storage only EBS storage only 8 2 EC2 Compute Units 1 virtual core Large 7.5 GB 4 EC2 Compute Units High-CPU XL 7 GB 4 2 virtual cores 20 EC2 Compute Units 8 virtual cores Small 1.7 GB, High-CPU Med 1.7 GB 1 EC2 Compute Unit 5 EC2 Compute Units 1 virtual core 2 Micro 613 MB 2 virtual cores Up to 2 ECUs (for short bursts) 1 1 2 4 8 16 32 64 128 256 EC2 Compute Units
  • 24. Start small Easy to up-size
  • 25. AMIs Amazon Community Your machine maintained maintained images Set of Linux and Windows Images published by other AMIs you have created from images AWS users EC2 instances Kept up to date by Amazon Managed and maintained by Can be kept private or shared in each region Marketplace partners with other accounts
  • 27. AMIs Linux Enterprise Linux Windows Small instance from Small instance from Small instance from $0.060 per hour $0.120 per hour $0.115 per hour Small instance from $0.090 per hour
  • 28. Instance types On-demand instances Unix/Linux instances start at $0.02/hour Pay as you go for compute power Low cost and flexibility Pay only for what you use, no up-front commitments or long-term contracts Use Cases: Applications with short term, spiky, or unpredictable workloads; Application development or testing
  • 29. Instance types On-demand instances Reserved instances Unix/Linux instances start at 1- or 3-year terms $0.02/hour Pay low up-front fee, receive significant hourly Pay as you go for compute power discount Low cost and flexibility Low Cost / Predictability Pay only for what you use, no up-front Helps ensure compute capacity is available commitments or long-term contracts when needed Use Cases: Use Cases: Applications with short term, spiky, or unpredictable workloads; Applications with steady state or predictable usage Application development or testing Applications that require reserved capacity, including disaster recovery
  • 30. Instance types Heavy utilization RI > 80% utilization Lower costs up to 58% On-demand instances Reserved instances Use Cases: Databases, Large Scale HPC, Always-on infrastructure, Baseline Unix/Linux instances start at 1- or 3-year terms $0.02/hour Pay low up-front fee, receive significant hourly Pay as you go for compute power discount Low cost and flexibility Low Cost / Predictability Pay only for what you use, no up-front Helps ensure compute capacity is available commitments or long-term contracts when needed Use Cases: Use Cases: Applications with short term, spiky, or unpredictable workloads; Applications with steady state or predictable usage Application development or testing Applications that require reserved capacity, including disaster recovery
  • 31. Instance types Heavy utilization RI > 80% utilization Lower costs up to 58% On-demand instances Reserved instances Use Cases: Databases, Large Scale HPC, Always-on infrastructure, Baseline Unix/Linux instances start at 1- or 3-year terms $0.02/hour Pay low up-front fee, receive significant hourly Medium utilization RI Pay as you go for compute power discount Low cost and flexibility Low Cost / Predictability 41-79% utilization Lower costs up to 49% Pay only for what you use, no up-front Helps ensure compute capacity is available Use Cases: Web applications, many heavy commitments or long-term contracts when needed processing tasks, running much of the time Use Cases: Use Cases: Applications with short term, spiky, or unpredictable workloads; Applications with steady state or predictable usage Application development or testing Applications that require reserved capacity, including disaster recovery
  • 32. Instance types Heavy utilization RI > 80% utilization Lower costs up to 58% On-demand instances Reserved instances Use Cases: Databases, Large Scale HPC, Always-on infrastructure, Baseline Unix/Linux instances start at 1- or 3-year terms $0.02/hour Pay low up-front fee, receive significant hourly Medium utilization RI Pay as you go for compute power discount Low cost and flexibility Low Cost / Predictability 41-79% utilization Lower costs up to 49% Pay only for what you use, no up-front Helps ensure compute capacity is available Use Cases: Web applications, many heavy commitments or long-term contracts when needed processing tasks, running much of the time Use Cases: Use Cases: Applications with short term, spiky, or Light utilization RI unpredictable workloads; Applications with steady state or predictable usage Application development or testing 15-40% utilization Applications that require reserved capacity, Lower costs up to 34% including disaster recovery Use Cases: Disaster Recovery, Weekly / Monthly reporting, Elastic Map Reduce
  • 33. Instance types On-demand instances Reserved instances Spot instances Unix/Linux instances start at 1- or 3-year terms Bid on unused EC2 capacity $0.02/hour Pay low up-front fee, receive significant hourly Spot Price based on supply/demand, Pay as you go for compute power discount determined automatically Low cost and flexibility Low Cost / Predictability Cost / Large Scale, dynamic workload handling Pay only for what you use, no up-front Helps ensure compute capacity is available commitments or long-term contracts when needed Use Cases: Use Cases: Use Cases: Applications with flexible start and end times Applications with short term, spiky, or unpredictable workloads; Applications with steady state or predictable Applications only feasible at very low compute usage prices Application development or testing Applications that require reserved capacity, including disaster recovery
  • 34. Launch an instance Commands, keypairs & security groups
  • 35.
  • 36. Region Instance size AMI Key pair Security group
  • 38. Public Key Inserted by Amazon into each EC2 instance that you launch EC2 Instance Comms secured with private key Private Key Downloaded and stored by you
  • 39. Keypairs & Secrets Keypairs Credentials x.509 Used to authenticate Access key and secret key Used to authenticate when accessing and used to authenticate against some APIs instance against APIs
  • 40. security groups instance firewalling
  • 41. Port 22 Name Security Group (SSH) Description Port 80 Protocol (HTTP) Port range IP Address, range, or another security group instance
  • 42. PS C:> New-EC2Instances -ImageId ami-269dbb63 -KeyName mykey -SecurityGroupId sg-9cf9e5d9 -InstanceType t1.micro
  • 43. $> ec2-run-instances ami-54cf5c3d --instance-count 2 --group webservers --key mykey --instance-type m1.small
  • 44. >>> import boto.ec2 >>> conn = boto.ec2.connect_to_region("us-east-1") >>> conn.run_instances( 'ami-54cf5c3d', key_name='mykey', instance_type='m1.small', security_groups=['webservers'])
  • 45. Wait a minute I want to use those tools too…
  • 46. IAM Roles and EC2 tools 1. Start an EC2 Linux instance 2. Assign an IAM role at launch time: 3. Sets up all the tools you need & manages { API access credentials "Statement": [ { 1. Up and running with CLI tools in a couple "Effect": "Allow", "NotAction": "iam:*", of minutes – just SSH on and use "Resource": "*" } 2. Terminate/stop instance when you are ] done }
  • 47. Now you have tools Try this…
  • 48. $> ec2-run-instances ami-54cf5c3d --instance-count 1
  • 49. $> ec2-run-instances ami-54cf5c3d --instance-count 1 --group webservers --key mykey --instance-type m1.small What about all this?
  • 50. $> ec2-run-instances ami-54cf5c3d --instance-count 1 --group Default --key NONE --instance-type default(m1.small) Defaults
  • 51. $> ec2-run-instances ami-54cf5c3d --instance-count 1 --group Default --key NONE --instance-type default(m1.small)
  • 52. Instances don’t need keypairs But how do you configure it if you can’t log onto it?
  • 53. Bootstrapping Bake an AMI Start an instance Configure the instance Create an AMI from your instance Start new ones from the AMI
  • 54. Bootstrapping Bake an AMI vs Configure dynamically Start an instance Launch an instance Configure the instance Use metadata service and cloud-init to Create an AMI from perform actions on your instance instance when it Start new ones from launches the AMI
  • 55. Bootstrapping Bake an AMI + Configure dynamically Build your base images Use bootstrapping to and setup custom pass custom initialisation scripts information in and perform post launch Maintain your ‘golden’ tasks like pulling code base from SVN
  • 56. Bootstrapping Bake an AMI Configure dynamically Time consuming configuration (startup time) Static configurations (less change management)
  • 57. Bootstrapping Bake an AMI Configure dynamically Continuous deployment (latest code) Environment specific (dev- test-prod)
  • 58. Goal is bring an instance up in a useful state The balance will vary depending upon your application
  • 59. Instance User request data
  • 60. Instance User Meta-data request data service
  • 61. Instance User Meta-data request data service Instance
  • 62. Shell script in user-data will be executed on launch: #!/bin/sh yum -y install httpd php mysql php-mysql chkconfig httpd on /etc/init.d/httpd start
  • 63. Amazon Windows EC2Config Service executes user- data on launch: <script>dir > c:test.log</script> <powershell>any command that you can run</powershell> AWS Powershell Tools (use IAM roles as before…) <powershell> Read-S3Object -BucketName myS3Bucket -Key myFolder/myFile.zip -File c:destinationFile.zip </powershell> 63
  • 64. Automation Less fingers, less mistakes Security Availability Instances locked Drive higher down by default availability with self- healing Why do this? Flexible Efficiency Shell, Powershell, Audit and manage CloudFormation, your estate with less Chef, Puppet, Scale time & effort OpsWorks Manage large scale deployments and drive autoscaling
  • 65. Some does and don’ts Do Use IAM roles Go keyless if you can Strike a balance between AMI and dynamic bootstrapping
  • 66. Some does and don’ts Do Don’t Use IAM roles Put your API access keys into code (and then publish Go keyless if you can to GIT) or bake into AMIs Strike a balance between (and share) AMI and dynamic bootstrapping 
  • 68. Instance Storage Local ‘on host’ disk volumes Data dependent upon instance lifecycle
  • 69. Instance Storage VS Elastic Block Storage Local ‘on host’ disk Network attached optimised volumes block storage Data dependent upon Data independent of instance lifecycle instance lifecycle
  • 70. Instance A Instance Storage Instance D Instance B Local ‘on host’ disk volumes Instance E Instance C Data dependent upon Instance F instance lifecycle Instance Store Instance Store eph0 eph1 eph2 eph3 eph0 eph1 eph2 eph3 Host 1 Host 2
  • 71. If an instance reboots (intentionally or Instance Storage unintentionally), data in the instance store persists Local ‘on host’ disk volumes Data on instance store volumes is lost under Data dependent upon the following circumstances: instance lifecycle • Failure of an underlying drive • Stopping an Amazon EBS-backed instance • Terminating an instance
  • 74. One or more ephemeral (temporary) drives (instance storage) One or more EBS (persistent) drives EBS snapshots (backup images) Elastic Block Storage Network attached optimised Workspace block storage Network Data independent of EBS snapshot instance lifecycle Hypervisor EC2 EBS S3
  • 75. Boot cycle Elastic Block Storage Network attached optimised block storage Data independent of EBS snapshot instance lifecycle Hypervisor EC2 EBS S3
  • 76. Boot cycle Elastic Block Storage Network attached optimised Workspace block storage Data independent of EBS snapshot instance lifecycle Hypervisor EC2 EBS S3
  • 77. Boot cycle Elastic Block Storage Network attached optimised Workspace block storage Data independent of EBS snapshot instance lifecycle Hypervisor EC2 EBS S3
  • 78. Boot cycle Elastic Block Storage Network attached optimised Workspace block storage Network Data independent of instance lifecycle Hypervisor EC2 EBS S3
  • 79. EBS Persistence EBS volume is off-instance storage You pay for the volume usage as long as the data persists 1. By default, EBS volumes that are attached to a running instance automatically detach from the instance with their data intact when that instance is terminated 2. By default, EBS volumes that are created and attached to an instance at launch are deleted when that instance is terminated. You can modify this behavior by changing the value of the flag DeleteOnTermination to false when you launch the instance.
  • 80. Elastic Load Balancer Spreading the load and fronting EC2
  • 81. A regional service Load balance across availability zones
  • 82. Elastic Load Balancer Instance Instance Instance Instance Instance Instance Availability Zone Availability Zone Availability Zone Region
  • 83. Elastic Load Balancing Spread Offload Health check Go small and wide SSL processing on ELB Choose the right healthcheck Balance resources across Remove load from EC2 point AZs instances Check whole layers
  • 84. 1. Persistent HTTP connections – enable them and ELB to Server will be optimized 2. Never address underlying IP – always DNS name • There’s a set behind an ELB and real clients spread across them • They will change as the ELB scales to keep ahead of demand 3. If you span ELB across AZs have an instance in all Azs 4. De-register instances from an ELB before terminating
  • 85.
  • 87. Launch Configuration Auto-Scaling Group Auto-Scaling Policy Describes what Auto Scaling Auto Scaling managed Parameters for performing an will create when adding grouping of EC2 instances Auto Scaling action Instances Automatic health check to Scale Up/Down and by how much AMI maintain pool size Instance Type ChangeInCapacity (+/- #) Security Group ExactCapacity (#) Automatically scale the number of Instance Key Pair ChangeInPercent (+/- %) instances by policy – Min, Max, Desired Only one active launch Cool Down (seconds) configuration at a time Automatic Integration with ELB Policy can be triggered by Auto Scaling will terminate CloudWatch events Automatic distribution & balancing instances with old launch across AZs configuration first rolling update
  • 88. Create a launch configuration: as-create-launch-config --image-id ami-54cf5c3d --instance-type m1.small --key mykey --group webservers --launch-config 101-launch-config
  • 89. Create a launch configuration: as-create-launch-config --image-id ami-54cf5c3d --instance-type m1.small The usual --key mykey suspects --group webservers --launch-config 101-launch-config
  • 90. Create an auto scaling group: as-create-auto-scaling-group 101-as-group --availability-zones us-east-1a us-east-1b us-east-1c --launch-configuration 101-launch-config --load-balancers myELB --max-size 5 --min-size 1
  • 91. Create an auto scaling group: as-create-auto-scaling-group 101-as-group --availability-zones us-east-1a us-east-1b us-east-1c --launch-configuration 101-launch-config --load-balancers myELB --max-size 5 --min-size 1 What’s going to launch
  • 92. Create an auto scaling group: as-create-auto-scaling-group 101-as-group --availability-zones us-east-1a us-east-1b us-east-1c --launch-configuration 101-launch-config --load-balancers myELB --max-size 5 --min-size 1 Integrate with an ELB?
  • 93. Create an auto-scaling policy (scale up): as-put-scaling-policy 101ScaleUpPolicy --auto-scaling-group 101-as-group --adjustment=1 --type ChangeInCapacity --cooldown 300
  • 94. Create an auto-scaling policy (scale up): as-put-scaling-policy 101ScaleUpPolicy --auto-scaling-group 101-as-group --adjustment=1 --type ChangeInCapacity --cooldown 300 Period before another action will take place (Damper)
  • 95. Create an auto-scaling policy (scale down): as-put-scaling-policy 101ScaleDownPolicy --auto-scaling-group 101-as-group "--adjustment=-1" --type ChangeInCapacity --cooldown 300
  • 97.
  • 98.
  • 99. Cloud Watch Alarm: Takes action: CPU >= 50% for 5 mins Scale up policy CPU < 30% for 10 mins Scale down policy
  • 100. Cloud Watch Alarm: Takes action: CPU >= 50% for 5 mins Scale up policy
  • 101. Cloud Watch Alarm: Takes action: CPU >= 50% for 5 mins Deliver message to Q SNS Topic Post to endpoint CPU < 30% for 10 mins Send Email
  • 102. Cloud Watch Alarm: Takes action: CPU >= 50% for 5 mins SNS Topic
  • 103. Comprehensive Billing, technical, aggregate & custom metrics SNS Alarms Integration Set custom alarms Push alarms to and thresholds SNS topics CloudWatch HTTP Email Poke HTTP integration endpoints for Send alarm custom alarm Custom Metrics notifications to actions Write your own metrics in via emails SDKs
  • 104. Other topics to look at:
  • 105. Other topics… Resource tagging Route 53 Rolling deployments Tag resources like EC2 Front EC2 and ELBs with Use Route 53 and ELBs to do and have it appear on Route 53 for control over rolling deployments, A/B billing reports DNS testing
  • 106. Other topics… Beanstalk OpsWorks CloudFormation Manage an entire Manage stacks as layers Template everything from autoscaling stack for and implement Chef configuration of CloudWatch popular containers such recipes to automate EC2 alarms, SNS topics, EC2 as ruby, python etc configuration instances
  • 108. Stop doing these: Provisioning and fixing servers Treating compute as physical things Thinking of compute as a finite commitment
  • 109. Elasticity Stateless autoscaling Automation Security applications Create instances when Build systems secure by you need them, drop default them when not and start doing these Replace not fix Be cost aware Build from scratch, don’t Unconstrained Tag resources, play with fix something instance types Say goodbye to traditional capacity planning
  • 110. Watch a demo here: http://youtu.be/kMExnVKhmYc