CloudFormation
AWS Resource Automation
Caveats
• Not affiliated with AWS
• No expert in AWS
• Not extensive cover of CF
World of AWS
Before We Start
• AWS Account
• AWS Management Console
• IAM Keys
• AWS CLI
• Boto (Python)
What is CloudFormation?
a template (config/manifest)
in json
What is CloudFormation?
Anatomy Of A CF Template
Parameters
Mappings
Resources
Outputs
The Basic Sekeleton
Intrinsic Functions
Fn::Base64
Fn::FindInMap
Fn::GetAtt
Fn::GetAZs
Fn::Join
Fn::Select
Ref
Condition Functions
Fn::And
Fn::Equals
Fn::If
Fn::Not
Fn::Or
Walkthrough
http://bit.ly/phpmelb-aws-cf-auto
Other Cool Stuff
• AWS::CloudFormation::CustomResource
• AWS::CloudFormation::WaitCondition
• AWS::CloudFormation::WaitCon...
These are handy
• Instances Profiles
• curl http://169.254.169.254/latest/meta-data/
• Cumulus (https://github.com/cotdsa/c...
How Do We Automate?
A Typical Scenario
• Already has a production environment
• Possible have RDS or DB instance
• Plenty of application serve...
Script Build First
Then CloudFormation
Deploying
Deployment Pipeline
Deployment Pipeline
Quick Demo
Why Is This Important?
• Highly auditable
• [Cruelly] consistent & predictable
• Conveniently reproducible
!
• Immutable S...
Thank you
weekeat@peazie.com	

@visualdensity	

@peaziesocial
Upcoming SlideShare
Loading in …5
×

Automating with CloudFormation

1,543 views

Published on

Presented at PHP Melbourne User Group (phpmelb.org). Source files for the presentation is available at http://bit.ly/phpmelb-aws-cf-auto

Published in: Technology, Business
0 Comments
5 Likes
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total views
1,543
On SlideShare
0
From Embeds
0
Number of Embeds
10
Actions
Shares
0
Downloads
34
Comments
0
Likes
5
Embeds 0
No embeds

No notes for slide

Automating with CloudFormation

  1. 1. CloudFormation AWS Resource Automation
  2. 2. Caveats • Not affiliated with AWS • No expert in AWS • Not extensive cover of CF
  3. 3. World of AWS
  4. 4. Before We Start • AWS Account • AWS Management Console • IAM Keys • AWS CLI • Boto (Python)
  5. 5. What is CloudFormation? a template (config/manifest) in json
  6. 6. What is CloudFormation?
  7. 7. Anatomy Of A CF Template
  8. 8. Parameters
  9. 9. Mappings
  10. 10. Resources
  11. 11. Outputs
  12. 12. The Basic Sekeleton
  13. 13. Intrinsic Functions Fn::Base64 Fn::FindInMap Fn::GetAtt Fn::GetAZs Fn::Join Fn::Select Ref
  14. 14. Condition Functions Fn::And Fn::Equals Fn::If Fn::Not Fn::Or
  15. 15. Walkthrough http://bit.ly/phpmelb-aws-cf-auto
  16. 16. Other Cool Stuff • AWS::CloudFormation::CustomResource • AWS::CloudFormation::WaitCondition • AWS::CloudFormation::WaitConditionHandle • CloudFormation Helper Scripts • cfn-init • cfn-get-metadata • cfn-signal
  17. 17. These are handy • Instances Profiles • curl http://169.254.169.254/latest/meta-data/ • Cumulus (https://github.com/cotdsa/cumulus)
  18. 18. How Do We Automate?
  19. 19. A Typical Scenario • Already has a production environment • Possible have RDS or DB instance • Plenty of application servers • Deployment is difficult
  20. 20. Script Build First
  21. 21. Then CloudFormation
  22. 22. Deploying
  23. 23. Deployment Pipeline
  24. 24. Deployment Pipeline
  25. 25. Quick Demo
  26. 26. Why Is This Important? • Highly auditable • [Cruelly] consistent & predictable • Conveniently reproducible ! • Immutable Servers • Avoids EOL of Instances • Reduces RTO
  27. 27. Thank you weekeat@peazie.com @visualdensity @peaziesocial

×