SlideShare a Scribd company logo
1 of 24
AWS Infrastructure
as code
CloudFormation and Cumulus
Who we are
 Ash Caire
WebOps Lead at Catch Group
 Peter Hall
WebOps Engineer at Catch Group
Twitter: @peterkh
Catch Group
 catchoftheday.com.au

 scoopon.com.au
 groceryrun.com.au
 eatnow.com.au
 mumgo.com.au
AWS CloudFormation
“... an easy way to create and manage a collection of
related AWS resources ... ”
- http://aws.amazon.com/cloudformation/

Uses JSON templates to describe “stacks” of resources
Full CloudFormation Example
Simple CloudFormation Example
Simple CloudFormation Example
Simple CloudFormation Example
Simple CloudFormation Example
Simple CloudFormation Example
Simple CloudFormation Example
So basically…
 Create almost any AWS resources with one API call

 Once created, stacks can be updated or deleted
 Templates are re-usable and can be used to create
multiple stacks simultaneously. Resources are assigned
dynamic names
 Resources are tagged throughout the stack, with stackname, stack-id and logical-id (name of template
resource)
CloudFormation Demo
It works great! …except
 Templates are JSON files. No comments. Not the easiest
format for humans to write
 Templates are standalone and complete. No inclusion of
other templates
 Creation of stacks requires manual specification of
template parameters
…which leads to
Very large template files with a “data centre” worth of
resources in it
or
Smaller templates with lots of manual parameters to feed
each one
or…
Stack resources in templates
 It is possible to create a CloudFormation stack inside a
stack
 Once created, cannot update the parameters of an
inside stack by updating the outside stack template
(update of outside stack will fail)

 Template for inside stack needs to be uploaded to an S3
bucket before stack creation

We wanted a better way!
Cumulus
 Python command line tool to add extra awesome to
CloudFormation
 Concept of a mega stack, made up of multiple
CloudFormation stacks.
 Adds an extra mega-stack yaml file on top of
Cloudformation JSON templates
 Written by CatchOfTheDay WebOps team
What does this give us?
 Keep CloudFormation template files small and re-usable

 Single file for a mega stack, including all its parameters
 Stacks can be dependent on each other and have
dynamic parameter values from other stack
resources
 More time writing YAML, less time writing JSON
 Watch stack events in near real-time
Cumulus YAML file example
 See:
https://github.com/cotdsa/cumulus/blob/master/exam
ples/cumulus_example_stack.yaml
Cumulus Demo
Future improvements
 Handle larger templates by using S3 upload

 Find a way to show meaningful diffs between running
stacks and local templates before doing an update
 Abstract away JSON templates altogether?

 Generally more robust code, better error handling and
writing tests
Please use and improve
Open to pull requests, issues and ideas

or even just let us know you are getting value from it...

https://github.com/cotdsa/cumulus
Questions?

More Related Content

Recently uploaded

Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
vu2urc
 

Recently uploaded (20)

Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed texts
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day Presentation
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
 
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
 
Tech Trends Report 2024 Future Today Institute.pdf
Tech Trends Report 2024 Future Today Institute.pdfTech Trends Report 2024 Future Today Institute.pdf
Tech Trends Report 2024 Future Today Institute.pdf
 
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
 
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
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf
 
Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024
 
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...
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
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
 
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
 
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...
 
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 Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 

Featured

How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
ThinkNow
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
Kurio // The Social Media Age(ncy)
 

Featured (20)

How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
 
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfAI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
 
Skeleton Culture Code
Skeleton Culture CodeSkeleton Culture Code
Skeleton Culture Code
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
 
How to have difficult conversations
How to have difficult conversations How to have difficult conversations
How to have difficult conversations
 
Introduction to Data Science
Introduction to Data ScienceIntroduction to Data Science
Introduction to Data Science
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best Practices
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project management
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
 
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
 
12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work
 
ChatGPT webinar slides
ChatGPT webinar slidesChatGPT webinar slides
ChatGPT webinar slides
 

AWS Infrastructure as code - CloudFormation and Cumulus

  • 2. Who we are  Ash Caire WebOps Lead at Catch Group  Peter Hall WebOps Engineer at Catch Group Twitter: @peterkh
  • 3. Catch Group  catchoftheday.com.au  scoopon.com.au  groceryrun.com.au  eatnow.com.au  mumgo.com.au
  • 4. AWS CloudFormation “... an easy way to create and manage a collection of related AWS resources ... ” - http://aws.amazon.com/cloudformation/ Uses JSON templates to describe “stacks” of resources
  • 12. So basically…  Create almost any AWS resources with one API call  Once created, stacks can be updated or deleted  Templates are re-usable and can be used to create multiple stacks simultaneously. Resources are assigned dynamic names  Resources are tagged throughout the stack, with stackname, stack-id and logical-id (name of template resource)
  • 14. It works great! …except  Templates are JSON files. No comments. Not the easiest format for humans to write  Templates are standalone and complete. No inclusion of other templates  Creation of stacks requires manual specification of template parameters
  • 15. …which leads to Very large template files with a “data centre” worth of resources in it or Smaller templates with lots of manual parameters to feed each one or…
  • 16. Stack resources in templates  It is possible to create a CloudFormation stack inside a stack  Once created, cannot update the parameters of an inside stack by updating the outside stack template (update of outside stack will fail)  Template for inside stack needs to be uploaded to an S3 bucket before stack creation We wanted a better way!
  • 17. Cumulus  Python command line tool to add extra awesome to CloudFormation  Concept of a mega stack, made up of multiple CloudFormation stacks.  Adds an extra mega-stack yaml file on top of Cloudformation JSON templates  Written by CatchOfTheDay WebOps team
  • 18. What does this give us?  Keep CloudFormation template files small and re-usable  Single file for a mega stack, including all its parameters  Stacks can be dependent on each other and have dynamic parameter values from other stack resources  More time writing YAML, less time writing JSON  Watch stack events in near real-time
  • 19. Cumulus YAML file example  See: https://github.com/cotdsa/cumulus/blob/master/exam ples/cumulus_example_stack.yaml
  • 21.
  • 22. Future improvements  Handle larger templates by using S3 upload  Find a way to show meaningful diffs between running stacks and local templates before doing an update  Abstract away JSON templates altogether?  Generally more robust code, better error handling and writing tests
  • 23. Please use and improve Open to pull requests, issues and ideas or even just let us know you are getting value from it... https://github.com/cotdsa/cumulus

Editor's Notes

  1. ----- Meeting Notes (26/11/2013 19:36) -----Intro
  2. ----- Meeting Notes (26/11/2013 19:36) -----Peter
  3. ----- Meeting Notes (26/11/2013 19:36) -----Marketing
  4. ----- Meeting Notes (26/11/2013 19:36) -----ProductRepeatedly, predictably ordered fashionInfrastructure as code - Collection/BlueprintOpposedManually/Console* 2 Terms - Resources defined using JSON ‘Templates’ to create ‘stacks’ of resources.
  5. ----- Meeting Notes (26/11/2013 19:36) -----Hard to see
  6. ----- Meeting Notes (26/11/2013 19:36) -----4 Main elements, other version desc
  7. ----- Meeting Notes (26/11/2013 19:36) -----Parameters – Keyname, constraints
  8. ----- Meeting Notes (26/11/2013 19:36) -----Mappings – AWSRegionArch2AMIKey attribute/pair
  9. ----- Meeting Notes (26/11/2013 19:36) -----Resources – The only required section of the 4.KeyNameNext slide is 2nd Resources.
  10. ----- Meeting Notes (26/11/2013 19:36) -----Resources 2:Fn:FindInMap function - key
  11. ----- Meeting Notes (26/11/2013 19:36) -----Outputs returned to caller
  12. ----- Meeting Notes (26/11/2013 19:36) -----Templates reusable -> Example web server, database server -> Bring up 2 more stacks, unique names.
  13. * Hate JSON* No inclusion like other languages
  14. Manual parameters – Or in my case, setting the values as defaults, which meant they were no longer re-usable or shareable.