Amazon Web Services – Elastic Beanstalk      Jeff Barr – Senior Evangelist      @jeffbarr
My BackgroundEducation:    • BS in Computer Science, The American University, 1985    • Grad student in Digital Media, Uni...
What You Will Learn• What are the Amazon Web Services?• What are the principal AWS components?• How do they fit together?•...
Amazon Web Services• Launched in 2006• Hundreds of thousands of customers in 190 countries• Building-block IT services• Si...
AWS PLATFORM                      Cloud-Powered Applications                     Management & AdministrationAdministration...
AWS Management Console
Amazon EC2 Architecture                   Region  Amazon  Machine      Availability Zone                 EphemeralImage (A...
EC2 – Regions and Availability ZonesRegion – One of 7 distinct physical locations:• Northern Virginia, San Francisco, Oreg...
EC2 Instance• Amazon EC2: A Virtual Server in the Cloud   •   Provision and boot new servers in minutes   •   Boot from AM...
EC2 Security Group• Virtual firewall• Control access to instance• Default configuration: no access
EC2 Elastic IP Address• Fixed IP address• Map to any EC2 instance in a Region• Retain address after switching instances
EC2 Elastic Load BalancerDistribute traffic to an array of EC2 instances• Scale up or scale down• Health checks• Traffic g...
Amazon CloudWatch•   Tracks and stores AWS and user-defined metrics•   2 week retention period•   Detect issues•   Raise a...
EC2 Auto Scaling• Control number of running EC2 instances• Scale up or down as needed• Drive decisions based on CloudWatch...
EC2 Elastic Block Storage (EBS)•   Virtual disk volumes•   1 GB – 1 TB per volume•   Create and attach to EC2 instance•   ...
What’s Next?         So…those are all of the parts!        Can we put them all together?
AWS Elastic Beanstalk- Intro• Easy to deploy and manage applications in AWS• Application Container / PaaS (Platform-as-a-S...
AWS Elastic Beanstalk - Environments          .NET                          PHP                      Java•   AWS SDK for ....
AWS Elastic Beanstalk – Development & Deployment
AWS Elastic Beanstalk in Action (1)Create some code (index.php)Check code into Git:    <devserver>: git init    Initialize...
AWS Elastic Beanstalk in Action (2)Create Beanstalk Application
AWS Elastic Beanstalk in Action (2)Wait for Application to Launch (Several Minutes)
AWS Elastic Beanstalk in Action (3)
AWS Elastic Beanstalk in Action (4)Install and configure AWS DevTools<devserver>: git aws.configAWS Access Key: ……………………AW...
AWS Elastic Beanstalk in Action (5)Push new application code:<devserver>: git aws.pushCounting objects: 3, done.Compressin...
AWS Elastic Beanstalk in Action (6)
AWS Elastic Beanstalk in Action (7)
AWS Free Usage Tier
Next Steps for You• Sign up for free account at http://aws.amazon.com/free/• Build and deploy your first PHP application• ...
Thanks for Listening!    jbarr@amazon.com         @jeffbarr
Amazon Web Services - Elastic Beanstalk
Upcoming SlideShare
Loading in...5
×

Amazon Web Services - Elastic Beanstalk

5,554

Published on

In this presentation, Jeff Barr introduces AWS, with a focus on EC2, and then shows how to use AWS Elastic Beanstalk with Git-based deployment of a PHP application.

Published in: Technology
1 Comment
13 Likes
Statistics
Notes
  • Social Mobile Brand - SEO services Provider in Canada help you to improve your business awareness via your websites by ranking top on search engine webpages

    http://socialmobilebrand.com/seo_services
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here
No Downloads
Views
Total Views
5,554
On Slideshare
0
From Embeds
0
Number of Embeds
3
Actions
Shares
0
Downloads
205
Comments
1
Likes
13
Embeds 0
No embeds

No notes for slide
  • Amazon Web Services is a set of primitive building blocks to enable developers to build applications and, ultimately, businesses, on our battle-tested infrastructure. So what kinds of building blocks do developers need? First, you need compute resources. The Elastic Compute Cloud, or EC2, allows developers to rent virtual computers, running in our data centers, and pay for them by the hour. Provision as many as you need – 1, 10, 1000, for as long as you need them, and you pay only for what you use (starting at 10 cents/hour). Next, you probably need somewhere to durably store and retrieve data. The Simple Storage Service, is, well, a simple storage service that allows to store and retrieve objects in the cloud using simple put and get API calls.You might need to index and query for that data, or create other structured data that you want to query, which is what we built SimpleDB.
  • Amazon Web Services - Elastic Beanstalk

    1. 1. Amazon Web Services – Elastic Beanstalk Jeff Barr – Senior Evangelist @jeffbarr
    2. 2. My BackgroundEducation: • BS in Computer Science, The American University, 1985 • Grad student in Digital Media, University of Washington, 2010-PresentBackground: • Microsoft Visual Studio team • Consulting to startups and VC’s • Amazon employee since 2002Author, “Host Your Web Site in the Cloud”Email: jbarr@amazon.comTwitter: @jeffbarr Copyright © 2011, Amazon Web Services LLC or its affiliates. All rights reserved.
    3. 3. What You Will Learn• What are the Amazon Web Services?• What are the principal AWS components?• How do they fit together?• How can I use AWS Elastic Beanstalk?
    4. 4. Amazon Web Services• Launched in 2006• Hundreds of thousands of customers in 190 countries• Building-block IT services• Sign up with a credit card at http://aws.amazon.com
    5. 5. AWS PLATFORM Cloud-Powered Applications Management & AdministrationAdministration Identity & Deployment Monitoring Console Access Application Platform Services Content Parallel Libraries & Messaging Distribution Processing SDKs Foundation Services Compute Storage Database Networking Global Infrastructure Regions Edge Locations Availability Zones
    6. 6. AWS Management Console
    7. 7. Amazon EC2 Architecture Region Amazon Machine Availability Zone EphemeralImage (AMI) Storage EC2 Instance Elastic Block StorageCloudWatch Security Group(s) Amazon S3 Elastic IPAuto Scaling Address EBS EBS Snapshot Snapshot Load Balancing
    8. 8. EC2 – Regions and Availability ZonesRegion – One of 7 distinct physical locations:• Northern Virginia, San Francisco, Oregon, Tokyo, Singapore, Brazil, IrelandAvailability Zone• Physical infrastructure (1 or more data centers)• 2 or more AZ’s per Region• Fault tolerance across AZ’s
    9. 9. EC2 Instance• Amazon EC2: A Virtual Server in the Cloud • Provision and boot new servers in minutes • Boot from AMI (Amazon Machine Image) • Your choice of Linux or Windows • Quickly scale capacity up or down • Deploy across Regions and Availability Zones for reliability • Choose from 14 different instance types: • CPU power • RAM • Local disk • Network speed
    10. 10. EC2 Security Group• Virtual firewall• Control access to instance• Default configuration: no access
    11. 11. EC2 Elastic IP Address• Fixed IP address• Map to any EC2 instance in a Region• Retain address after switching instances
    12. 12. EC2 Elastic Load BalancerDistribute traffic to an array of EC2 instances• Scale up or scale down• Health checks• Traffic goes to healthy instances• Configurable list of ports
    13. 13. Amazon CloudWatch• Tracks and stores AWS and user-defined metrics• 2 week retention period• Detect issues• Raise alerts
    14. 14. EC2 Auto Scaling• Control number of running EC2 instances• Scale up or down as needed• Drive decisions based on CloudWatch metrics • CPU load • Network traffic• No direct console UI at present: • Command line • API • Elastic Beanstalk• Auto-scaling group • Instance collection • Actions (rules)
    15. 15. EC2 Elastic Block Storage (EBS)• Virtual disk volumes• 1 GB – 1 TB per volume• Create and attach to EC2 instance• Format and write data• Snapshot and restore• Provison desired IOPS (up to 1000 per volume)
    16. 16. What’s Next? So…those are all of the parts! Can we put them all together?
    17. 17. AWS Elastic Beanstalk- Intro• Easy to deploy and manage applications in AWS• Application Container / PaaS (Platform-as-a-Service)• Get started at no charge (free usage tier)• You: • Create and upload application• Elastic Beanstalk: • Capacity provisioning (EC2) • Load balancing (ELB) • Auto-scaling (Auto Scaling) • Application health monitoring (CloudWatch)
    18. 18. AWS Elastic Beanstalk - Environments .NET PHP Java• AWS SDK for .NET • AWS SDK for PHP AWS SDK for Java• Visual Studio Toolkit • Existing dev tools Eclipse Toolkit• Microsoft Web Deploy • Git-based deployment Upload WAR file• Upload ZIP • GIT PUSH Linux + Tomcat + Apache• Microsoft Windows + IIS • Linux + Apache
    19. 19. AWS Elastic Beanstalk – Development & Deployment
    20. 20. AWS Elastic Beanstalk in Action (1)Create some code (index.php)Check code into Git: <devserver>: git init Initialized empty Git repository in /home/jeff/jeffbarr_core/projects/bs_demo_1/.git/ <devserver>: git add . <devserver>: git commit -m"Initial check-in." [master (root-commit) fc57da3] Initial check-in. 1 files changed, 8 insertions(+), 0 deletions(-) create mode 100644 index.php
    21. 21. AWS Elastic Beanstalk in Action (2)Create Beanstalk Application
    22. 22. AWS Elastic Beanstalk in Action (2)Wait for Application to Launch (Several Minutes)
    23. 23. AWS Elastic Beanstalk in Action (3)
    24. 24. AWS Elastic Beanstalk in Action (4)Install and configure AWS DevTools<devserver>: git aws.configAWS Access Key: ……………………AWS Secret Key: ……………………………AWS Region: us-east-1AWS Elastic Beanstalk Application: My First Elastic Beanstalk ApplicationAWS Elastic Beanstalk Environment: Default-Environment
    25. 25. AWS Elastic Beanstalk in Action (5)Push new application code:<devserver>: git aws.pushCounting objects: 3, done.Compressing objects: 100% (2/2), done.Writing objects: 100% (3/3), 307 bytes, done.Total 3 (delta 0), reused 0 (delta 0)remote:Tohttps://180P9FEG65H0CMCANER2:20120601T212315Zac4b3d5b9f887ae461b3079927762543d94a83855a2ad0beed66b2c27b3b435e@git.elasticbeanstalk.us-east-1.amazonaws.com/repos/4d7920466972737420456c6173746963204265616e7374616c6b204170706c69636174696f6e/Default-Environment
    26. 26. AWS Elastic Beanstalk in Action (6)
    27. 27. AWS Elastic Beanstalk in Action (7)
    28. 28. AWS Free Usage Tier
    29. 29. Next Steps for You• Sign up for free account at http://aws.amazon.com/free/• Build and deploy your first PHP application• Read AWS blog at http://aws.typepad.com• Send questions my way – jbarr@amazon.com
    30. 30. Thanks for Listening! jbarr@amazon.com @jeffbarr
    1. A particular slide catching your eye?

      Clipping is a handy way to collect important slides you want to go back to later.

    ×