Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

Jz 101 t


Published on

  • Be the first to comment

  • Be the first to like this

Jz 101 t

  1. 1. Amazon Web ServicesTechnical Workshop 101
  2. 2. Welcome!Get ready for a very deep dive on AWS!
  3. 3. House Keeping Silence your phones Restrooms / Emergency Exits Your instructor:  Joe Ziegler,  AWS Technical Evangelist @jiyosub
  4. 4. Setting Up, if you want to follow along Install Firefox or Chrome Sign up for AWS @jiyosub
  5. 5. Audience for this Presentation System Administrators Solutions Architects / Cloud Architects IT Professionals Software Developers ...With enough experience using AWS
  6. 6. AWS Technical Workshop 101 ObjectiveProvide a basic understanding of:Cloud Computing, Amazon Web ServicesProvide a basic hands-on experience on:Amazon EC2 and EBSAmazon S3Amazon CloudFrontAmazon RDS 6
  7. 7. AWS Workshop 101 Agenda1) Introduction to Cloud Computing2) Theory, Demo, Lab Exercise: 2.1) Amazon S3 2.2) Amazon EC2 2.3) Amazon EBS 2.4) Amazon CloudFront 2.5) Amazon RDS3) Conclusions 7
  8. 8. Questions?Feel free to always ask questions! 8
  9. 9. Cloud Computing What is it?
  10. 10. Cloud Computing1) Elastic Capacity2) Faster time to market3) No CapEx4) Pay as you go, pay for what you use5) Focus on your business 10
  11. 11. Amazon Web ServicesAmazon Web Services provides a+ Highly reliable+ Scalable+ Low-costInfrastructure Platform in the cloud thatpowers hundreds of thousands ofbusinesses in 190 countries around theworld. 11
  12. 12. Amazon Web Services Regions Set of multiple data centers (as of Dec 2012)
  13. 13. GovCloud: We will not talk about GovCloud in this Workshop
  14. 14. Amazon EC2 Availability Zones (AZ) you can run your virtual servers in each AZ19 Availability Zones in total (as of Dec 2012)
  15. 15. CloudFront + Route53Content Delivery Edge Locations DNS Service South New York Amsterdam Seattle (2) London Bend Newark Stockholm Palo Alto Dublin TokyoSan Jose Frankfurt Paris Los Angeles Ashburn (2) Hong Jacksonville Kong Dallas Sydney St.Louis Miami Singapore Sao Paulo 38 Edge Locations in total (as of Dec 2012)
  16. 16. How to use AWSThe AWS Management Console
  17. 17. The AWS Management Console1) Manage most AWS services2) Multi-Factor Authentication3) Secure4) Accessible5) Works best on Firefox / Chrome 17
  18. 18. 18 AWS Management Console
  19. 19. Questions? 19
  20. 20. Amazon S3Simple Storage Service
  21. 21. Amazon S3 Simple Storage ServiceObject-based storage (no Filesystem)Easily store/retrieve dataDurability of 99.999999999% or 99.99%Integrated with other AWS ServicesScalableRedundancy is managed transparentlyFile (Object): up to 5 TB eachHTTP, HTTPS, BitTorrent protocols 21
  22. 22. Amazon S3 Redundancy Your Data Any Amazon S3 Region Data Data Data is replicated multiple times Data In case of failure,data is replicated again, Data Data transparently
  23. 23. Amazon S3 Use casesBackupArchiveDisaster Recovery (DR)Content Storage 23
  24. 24. Amazon S3 DemoCreate an S3 BucketUpload/Download filesWork with access permissions 24
  25. 25. Amazon S3 Lab ExerciseCreate a new S3 bucket in the Singapore region to store log files. E.g.2012-jiyosub-logs (use your name)Create a new S3 bucket in Singapore to store public content, andconfigure logging using the previously created bucket, in asubdirectory called my-s3-logs.E.g. 2012-jiyosub-publicUpload a picture file, open it with a browser.Play with permissions, make it private or public.Also try Reduced Redundancy as an option. 25
  26. 26. Questions? 26
  27. 27. Amazon CloudFrontContent Delivery Network
  28. 28. Amazon CloudFront Content Delivery NetworkDelivery of content worldwideStatic: HTTP / HTTPSStreaming: RTMPOrigin server: S3, EC2, non-AWSPublic/Private DistributionsLogs 28
  29. 29. Regions, Availability Zones, Edge Locations Amsterdam Seattle South Bend New York (2) London Newark Stockholm Palo Alto Dublin TokyoSan Jose Frankfurt Pari Los Angeles s Ashbur (2) n Jacksonvill Hong Dalla e Kong s St.Loui Miam Singapor Sydney s i e Sao Paulo 38 Edge Locations in total (as of Dec 2012)
  30. 30. Let’s simplify a bit: we consider only a few of them StockholmSan Jose Hong Kong Sao Paulo Your web servers in Singapore
  31. 31. Content Delivery Network: How it works StockholmSan Jose Hong Kong Sao Paulo Dynamic pages (PHP, Java) (from web Your web servers servers) in Singapore Static content or streaming (with CloudFront)
  32. 32. Content Delivery Network: How it works in details1) A person opens a website, e.g. The browser performs a DNS query3) DNS responds: go to A web server responds with a web page5) Some objects inside the page require further queries6) Some are hosted on CloudFront “distributions”7) The browser will be directed to the closest location8) Content will be served quickly and reliably 32The user doesn’t need to know anything about CDNs
  33. 33. CloudFront + Route53 Edge Locations Amsterdam Seattle South Bend New York (2) London Newark Stockholm Palo Alto Dublin TokyoSan Jose Frankfurt Pari Los Angeles s Ashbur (2) n Jacksonvill Hong Dalla e Kong s St.Loui Miam Singapor Sydney s i e Sao Paulo 38 Edge Locations in total (as of Dec 2012)
  34. 34. Amazon CloudFront Use casesAccelerated web content deliveryOff-load traffic from web serversBig spikes in trafficEvent streamingMarketing campaigns 34
  35. 35. Amazon CloudFront DemoCreate a static distributionTest the content 35
  36. 36. Amazon CloudFront Lab ExerciseUse your S3 bucket 2012-jiyosub-public to create adistribution using it as the origin.Delivery method is Downloading.Logging is into the S3 bucket: 2012-jiyosub-publicPlace the logs under the directory my-cf-logsSelect one of your pictures, then open it with a browser.Test it with your Cloud Buddy. (it might take 10-15 mins)Once finished, destroy the CloudFront distribution. 36
  37. 37. Questions? 37
  38. 38. Amazon EC2Elastic Compute Cloud
  39. 39. Amazon EC2 Elastic Compute CloudLinux / Windows virtual machinesElastic (scale in minutes)Many Instance types (micro, small, large...)AMI: Amazon Machine ImageVPC: Virtual Private CloudSecurity (Groups, Keys...)VM ImportAuto Scaling, Elastic Load Balancing 39
  40. 40. Amazon EC2 Availability Zones (AZ)21 Availability Zones in total (as of Dec 2012)
  41. 41. Amazon EC2 Use casesMediaHostingHigh Performance ComputingDev & TestInternal ApplicationsGaming... Everything that needs computing! 41
  42. 42. Amazon EC2 Demo #1 (from Linux to Linux)Create a new Security GroupLaunch an Amazon EC2 instance (Linux)Log in with SSH as ec2-user@Install a web serverCreate a simple web pageTest it on a browser: it works!Create and attach an Elastic IPCreate an AMI from an EC2 Instance 42
  43. 43. Amazon EC2 Demo #2 (from Windows to Windows)Create a new Security Group for WindowsLaunch a new EC2 instance (Windows)Log in with RDPIf from Windows: log in with RDP 44
  44. 44. Amazon EC2 Lab ExerciseCreate a new Security Group, “linux-web”Enable SSH, HTTP, HTTPSCreate a new Keypair, and download itLaunch a t1.micro or t1.small using a Linux AMIEnable CloudWatchAssociate it with Keypair and Security GroupLog in, install a web server, create a web pageActivate the web server, test it on a browserAssign an Elastic IP to the InstanceStop it. Create an AMI from the Instance.Boot a second Instance from that AMI. Test it. 45
  45. 45. Questions? 46
  46. 46. Amazon EBSElastic Block Store
  47. 47. Amazon EBS Elastic Block StoreBlock Level Storage for use with EC2Volume: 1 GB to 1 TBRaw unformatted block deviceLocal to an Availability ZoneRedundantPersistentPoint-in-time snapshots to Amazon S3Integration with CloudWatch 48
  48. 48. Amazon EBS DemoCreate a new EBS volumeAttach it to an EC2 InstancePartition it and create a File SystemMount it; create a file in itCreate an EBS SnapshotCreate a new volume from the Snapshot 49
  49. 49. Amazon EBS Lab ExerciseCreate a new 5 GB volume, in the same AZ as your runningEC2 InstanceAttach itLog into the EC2 Instance, confirm the volume is visiblePartition the volume, create a File System (ext3)Mount the volumeCreate a file in itUnmount itCreate a snapshot from the Management ConsoleCreate a volume from the snapshotMount the new snapshot, verify that the file is there 50
  50. 50. Questions? 51
  51. 51. Amazon RDSRelational Database Service
  52. 52. Amazon RDS Relational Database ServiceRelational Database “as a Service”Simple to DeployManaged by the AWS teamMySQL, SQLServer or Oracle (as of 2012)ScalableOptional: automatic Standby ReplicaOptional: multiple Read-Only copiesEasy DB Snapshots and automated backup 53
  53. 53. Amazon RDS DemoCreate a DB Instance on RDS (MySQL)Enable Multi-AZ DeploymentEnable one Read ReplicaOptional: connect to the DB Instance 54
  54. 54. Amazon RDS Lab ExerciseFrom the AWS Management Console, under AmazonRDS, create a new DB Instance (MySQL)Enable Multi-AZ DeploymentOnce the DB Instance is running, enable Read ReplicaPerform a manual DB SnapshotOptional: connect to the DB Instance, create a newDatabase, a new Table, enter some values 55
  55. 55. Questions? 56
  56. 56. IMPORTANT!To avoid unwanted running costs:+ Delete your S3 objects+ Destroy your CloudFront distributions+ Stop or Shut Down your EC2 and RDS instancesThe customer is responsible for the resources he’s using.AWS declines any responsibility if the customer forgetsto shut down resources. 57
  57. 57. How to learn more?
  58. 58. Resources•••••
  59. 59. This Presentation
  60. 60. Thank you! Joe Ziegler Technical Evangelist @jiyosub