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.

Real World AWS Deployment With Boto, Fabric, and Cloud Formation

9,248 views

Published on

A real world use case of spinning up EC2 instances using a Python based frameworks (Fabric and Boto) and Cloud Formation. Source code is available on https://github.com/dixonwh/aws-provisioning

Published in: Technology
  • DOWNLOAD THIS BOOKS INTO AVAILABLE FORMAT (2019 Update) ......................................................................................................................... ......................................................................................................................... Download Full PDF EBOOK here { https://soo.gd/irt2 } ......................................................................................................................... Download Full EPUB Ebook here { https://soo.gd/irt2 } ......................................................................................................................... Download Full doc Ebook here { https://soo.gd/irt2 } ......................................................................................................................... Download PDF EBOOK here { https://soo.gd/irt2 } ......................................................................................................................... Download EPUB Ebook here { https://soo.gd/irt2 } ......................................................................................................................... Download doc Ebook here { https://soo.gd/irt2 } ......................................................................................................................... ......................................................................................................................... ................................................................................................................................... eBook is an electronic version of a traditional print book THIS can be read by using a personal computer or by using an eBook reader. (An eBook reader can be a software application for use on a computer such as Microsoft's free Reader application, or a book-sized computer THIS is used solely as a reading device such as Nuvomedia's Rocket eBook.) Users can purchase an eBook on diskette or CD, but the most popular method of getting an eBook is to purchase a downloadable file of the eBook (or other reading material) from a Web site (such as Barnes and Noble) to be read from the user's computer or reading device. Generally, an eBook can be downloaded in five minutes or less ......................................................................................................................... .............. Browse by Genre Available eBooks .............................................................................................................................. Art, Biography, Business, Chick Lit, Children's, Christian, Classics, Comics, Contemporary, Cookbooks, Manga, Memoir, Music, Mystery, Non Fiction, Paranormal, Philosophy, Poetry, Psychology, Religion, Romance, Science, Science Fiction, Self Help, Suspense, Spirituality, Sports, Thriller, Travel, Young Adult, Crime, Ebooks, Fantasy, Fiction, Graphic Novels, Historical Fiction, History, Horror, Humor And Comedy, ......................................................................................................................... ......................................................................................................................... .....BEST SELLER FOR EBOOK RECOMMEND............................................................. ......................................................................................................................... Blowout: Corrupted Democracy, Rogue State Russia, and the Richest, Most Destructive Industry on Earth,-- The Ride of a Lifetime: Lessons Learned from 15 Years as CEO of the Walt Disney Company,-- Call Sign Chaos: Learning to Lead,-- StrengthsFinder 2.0,-- Stillness Is the Key,-- She Said: Breaking the Sexual Harassment Story THIS Helped Ignite a Movement,-- Atomic Habits: An Easy & Proven Way to Build Good Habits & Break Bad Ones,-- Everything Is Figureoutable,-- What It Takes: Lessons in the Pursuit of Excellence,-- Rich Dad Poor Dad: What the Rich Teach Their Kids About Money THIS the Poor and Middle Class Do Not!,-- The Total Money Makeover: Classic Edition: A Proven Plan for Financial Fitness,-- Shut Up and Listen!: Hard Business Truths THIS Will Help You Succeed, ......................................................................................................................... .........................................................................................................................
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here

Real World AWS Deployment With Boto, Fabric, and Cloud Formation

  1. 1. Real World AWS DeploymentDeploying MongoDB with Fabric, Boto, and Cloud Formation{dixon.whitmire@pokitdok.com}, @nixonhughes
  2. 2. Who Am I ?Software Engineer @ PokitdokTasked with scaling out infrastructureDeveloped custom provisioning process for AWS (Boto, Fabric, Cloud Formation)
  3. 3. What we’ll cover . . .Amazon Web Services Overview (EC2, ESB, Regions, etc)REALISTIC provisioningBuilding a provisioning solution with Boto, Fabric, and Cloud Formation to deploy a MongoDB Replica Set
  4. 4. AWS OverviewCloud Computing and Infrastructure as a Service (Iaas)AWS Regions and Availability ZonesAmazon Machine Images (AMI)
  5. 5. AWS Overview (continued)Core Services Elastic Compute (EC2) Elastic Block Storage (EBS) Elastic IPTaggingSecurity GroupsAccessing Instances
  6. 6. Realistic ProvisioningBase process off of configuration standards: directory layouts, users, etc.Processes are repeatable (scripted) but may not be 100% automatedIterate to improve automation %
  7. 7. the alternative . . .
  8. 8. Boto – Python Interface for AWSHosted on githubActivate developer community on Google GroupsSupports additional services such as OpenStack, Eucalyptus, and Google Storage
  9. 9. Boto ExamplesStop all instances in us-west-2Get all running Mongo Instances
  10. 10. Fabric – Python SSH LibraryHosted on githubEncapsulates common ssh/scp operationsExecutable tasks are plain ‘ol Python functions decorated with @task
  11. 11. Fabric ExamplesStart servicesCommand line task execution
  12. 12. AWS Cloud FormationDeclarative provisioning and deployment tool based on JSON templatesSupports composition/aggregation with template referencesTemplates are parameterized, may include scripts, and support updates
  13. 13. AWS Cloud Formation Snippet
  14. 14. The Dark Side of Cloud FormationUser Data, BASH, and JSON
  15. 15. The DesignCloud Formation is used for provisioning not configurationBoto creates AMIs and configures instancesFabric as an execution framework
  16. 16. The ProcessCreate AMIs In the appropriate regionsUpload Cloud Formation templates to S3Spin up instances using Cloud FormationConfigure instances with Fabric
  17. 17. Create AMIsUse the command:fab create_amiSupports saving AMI to multiple regionsDifferentiates between general and specific functions using ami_typeUpdate CF Templates with AMI ID
  18. 18. Upload to CF Templates to S3Publish templates using:fab push_cf_templates_to_s3Templates are stored in S3 buckets per regionPublish for changes/updates to templates
  19. 19. Cloud Formation
  20. 20. Wrap-UpDoes this scale?Python/Boto ease of us vs Cloud Formation’s declarative verbosityNext iteration – fabric toolchain wrapping boto APIs
  21. 21. FREE CODE !!!!! No copyright No terms of use No strings attached https://github.com/dixonwh/aws-provisioning
  22. 22. Questions?

×