SlideShare a Scribd company logo
©2015,	
  Amazon	
  Web	
  Services,	
  Inc.	
  or	
  its	
  affiliates.	
   All	
  rights	
  reserved
Shiva  N
Solutions  Architect,  AWS
@shivamaan
AWS  +  Puppet  =  Dynamic  Scale
PuppetCamp,  Melbourne  2015
Application  Rate  of  Change  Is  Increasing
Source  2013  State  of  DevOps  Report  
Puppet  Labs,  IT  Revolution  Press
Top  Performers
30x  more  frequent  
code  deployments
More  than  25%  can  
deploy on  demand
~11.6s
Mean  time
between  
deployments  
(weekday)
~1,079
Max  number  of  
deployments  in  a  
single  hour
~10,000
Mean  number  of  
hosts  
simultaneously  
receiving  a  
deployment  
~30,000
Max  number  of  
hosts  
simultaneously  
receiving  a  
deployment  
DEPLOYMENTS   AT  AMAZON.COM
75%
Reduction  in  
outages  triggered  
by  software  
deployments  since  
2006
90%
Reduction  in  
outage  minutes  
triggered  by  
software  
deployments
Business  Value  of  Frequent  
Deployments
~0.001%
Software  
deployments  
cause  an
outage
example.com – Online  auction
AWS Sydney Region
Public subnet App subnet
HAProxy Vertx
Glassfish
Data subnet
Puppet  
Stack
ELK
StackMgmt subnet
Jenkins
Let’s  build  
[  ]  OS  
[  ]  Patches
[  ]  OS  Configuration
[  ]  VM  Templates  (Amazon  Machine  Image)
[  ]  VPC
[  ]  Networking  (Subnets,  ELBs)
[  ]  Network  Security  (NACLs  and  SGs)
[  ]  Software
[  ]  Application  (Code)
[  ]  Services
Start  with  a  Base  Image
Machine  Images  can  come  from  several  sources..
- AWS  Provided  (Quick  Start)
- AWS  Marketplace
- Community  AMIs
- Build  your  own  AMIs
- Migrate  On  Premise  Image
We  need  a  server  to  
build  an  image  to  
build  a  server
Let’s  build  
[X]  OS  
[  ]  Patches
[  ]  OS  Configuration
[  ]  VM  Templates  (Amazon  Machine  Image)
[  ]  VPC
[  ]  Networking  (Subnets,  ELBs)
[  ]  Network  Security  (NACLs  and  SGs)
[  ]  Software
[  ]  Application  (Code)
[  ]  Services
Layers  to  Foundational  Image
CI-­‐CD  Pipeline
- git push  puppetmanifests
- Packer/AMINator
- puppet  apply
- Test  image
- Register  AMI,  meta-­‐data  in  CMDB
Let’s  build  
[X]  OS  
[X]  Patches
[X]  OS  Configuration
[X]  VM  Templates  (Amazon  Machine  Image)
[  ]  VPC
[  ]  Networking  (Subnets,  ELBs)
[  ]  Network  Security  (NACLs  and  SGs)
[  ]  Software
[  ]  Application  (Code)
[  ]  Services
Cloudformation
Let’s  build  
[X]  OS  
[X]  Patches
[X]  OS  Configuration
[X]  VM  Templates  (Amazon  Machine  Image)
[X]  VPC
[X]  Networking  (Subnets,  ELBs)
[X]  Network  Security  (NACLs  and  SGs)
[  ]  Software
[  ]  Application  (Code)
[  ]  Services
Build  Puppet  Stack
- EC2  Metadata  service  (or  Resource  Tags)
$  aws s3  cp s3://puppetmanifests /etc/puppet/modules   (or  
git clone)
$  curl  http://169.254.169.254/latest/user-­‐data
…
hiera_role=PuppetMaster
- Self  awareness  by  facter/hiera magic
- Self  manifestation  with  puppet  apply
Build  Software  Stack
- CloudFormation
- RDS
- Elasticache
- S3
- CloudFront
- Route  53
- ELB
- SNS
- Autoscaling groups  of  EC2  Instances
- PuppetMaster
- Build  ELK  Stack  (PuppetForge)
- Build  Glassfish  layer  (Custom  types  and  providers)
- Build  Vertx layer  (Custom  types  and  providers)
- Build  HAProxy layer  (PuppetForge)
Let’s  build  
[X]  OS  
[X]  Patches
[X]  OS  Configuration
[X]  VM  Templates  (Amazon  Machine  Image)
[X]  VPC
[X]  Networking  (Subnets,  ELBs)
[X]  Network  Security  (NACLs  and  SGs)
[X]  Software
[  ]  Application  (Code)
[  ]  Services
Application  Deployment
define  glassfish::app  (
$user   =  'glassfish',
$action =  'deploy',
$bindaddr =  '127.0.0.1',
$mgmtport =  '8080',
$deploy_source =  '${glassfish::real_instance_basedir/deployments/${name}.war',
)  {
require glassfish
if ($action ==  'deploy')  {
app {  "${name}":
ensure   =>  present,
mgmtport =>  $mgmtport,
user   =>  $user,
source   =>  $deploy_source,
}
}
}
Let’s  build  
[X]  OS  
[X]  Patches
[X]  OS  Configuration
[X]  VM  Templates  (Amazon  Machine  Image)
[X]  VPC
[X]  Networking  (Subnets,  ELBs)
[X]  Network  Security  (NACLs  and  SGs)
[X]  Software
[X]  Application  (Code)
[X]  Services
Let’s  run
[  ]  Tune
[  ]  Release
[ ]  Orchestrate  and  Automate
Decision,  Decisions…
- In  place  deployments  (Puppet  run)
- MCollective
- CodeDeploy
- Immutable  deployments  
- Blue-­‐Green  deployment
- AMI  baking
AWS  CodeDeploy
Bake  an  AMI Puppet  +
Sweet  spot  
To  AMI  or  not  to  AMI
Start  an  instance
Configure  the  instance
Create  an  AMI  from  your  
instance
Start  new  ones  from  the  AMI
Launch  an  instance
Use  metadata  service  to  get  
hiera roles
Puppet  run  performs  post  
launch  config
The  Butler  orchestrates
*  Golden  AMI  – Glassfish  +  HAProxy +  Vertx +  Applications  with  all  services  turned  off
Minor  Release
Major  Release
+
+
CodeDeploy Autoscaling group Scheduled
Autoscaling
group
Packer AMI* DynamoDB
Autoscaling
group
Packer AMI* DynamoDB
Let’s  run
[X]  Tune
[X]  Release
[X]  Orchestrate  and  Automate
example.com – Online  auction
AWS Singapore Region
Public subnet App subnet
HAProxy Vertx
Glassfish
Data subnet
Puppet  
Stack
ELK
StackMgmt subnet
Jenkins
Thank  You

More Related Content

Viewers also liked (20)

PPTX
All you need to know about Orient Me
LetsConnect
 
PPTX
Microservices mit Java EE - am Beispiel von IBM Liberty
Michael Hofmann
 
PPTX
Deploy Microservices in the Real World
Elana Krasner
 
PPTX
Security Realism in Education
Tajul Azhar Mohd Tajul Ariffin
 
PDF
What's new in oracle ORAchk & EXAchk 12.2.0.1.2
Gareth Chapman
 
PPTX
Introduction to Data Modeling in Cassandra
Jim Hatcher
 
PDF
VoxxedDays Bucharest 2017 - Powering interactive data analysis with Google Bi...
Márton Kodok
 
PPTX
Interesting Places in Poland
wojcik_agnieszka
 
PDF
Elks for analysing performance test results - Helsinki QA meetup
Anoop Vijayan
 
PDF
Cloud Security Best Practices - Part 2
Cohesive Networks
 
PDF
Stormshield Visibility Center
NRC
 
PDF
Cloud Expo New York: OpenFlow Is SDN Yet SDN Is Not Only OpenFlow
Cohesive Networks
 
PPTX
A BRIEF OVERVIEW ON WILDLIFE MANAGEMENT
Pintu Kabiraj
 
PPTX
Considerations for Operating An OpenStack Cloud
Mark Voelker
 
PPTX
Microsoft Microservices
Chase Aucoin
 
PDF
AppSensor - Near Real Time Event Detection and Response
jtmelton
 
PPTX
Elk stack
datamantra
 
PDF
From 10 Users to 10 Milion in 10 Days - Adam Lev, Tamar Labs - DevOpsDays Tel...
DevOpsDays Tel Aviv
 
PPTX
What is DevOps?
Tyler (TJ) McCleve
 
PDF
Big Data Europe: Simplifying Development and Deployment of Big Data Applications
BigData_Europe
 
All you need to know about Orient Me
LetsConnect
 
Microservices mit Java EE - am Beispiel von IBM Liberty
Michael Hofmann
 
Deploy Microservices in the Real World
Elana Krasner
 
Security Realism in Education
Tajul Azhar Mohd Tajul Ariffin
 
What's new in oracle ORAchk & EXAchk 12.2.0.1.2
Gareth Chapman
 
Introduction to Data Modeling in Cassandra
Jim Hatcher
 
VoxxedDays Bucharest 2017 - Powering interactive data analysis with Google Bi...
Márton Kodok
 
Interesting Places in Poland
wojcik_agnieszka
 
Elks for analysing performance test results - Helsinki QA meetup
Anoop Vijayan
 
Cloud Security Best Practices - Part 2
Cohesive Networks
 
Stormshield Visibility Center
NRC
 
Cloud Expo New York: OpenFlow Is SDN Yet SDN Is Not Only OpenFlow
Cohesive Networks
 
A BRIEF OVERVIEW ON WILDLIFE MANAGEMENT
Pintu Kabiraj
 
Considerations for Operating An OpenStack Cloud
Mark Voelker
 
Microsoft Microservices
Chase Aucoin
 
AppSensor - Near Real Time Event Detection and Response
jtmelton
 
Elk stack
datamantra
 
From 10 Users to 10 Milion in 10 Days - Adam Lev, Tamar Labs - DevOpsDays Tel...
DevOpsDays Tel Aviv
 
What is DevOps?
Tyler (TJ) McCleve
 
Big Data Europe: Simplifying Development and Deployment of Big Data Applications
BigData_Europe
 

Similar to AWS + Puppet = Dynamic Scale (20)

PDF
Aws + Puppet = Dynamic Scale
Puppet
 
PDF
Chasing AMI - Building Amazon machine images with Puppet, Packer and Jenkins
Tomas Doran
 
PDF
Puppet Camp London 2014: Chasing AMI: baking Amazon machine images with Jenki...
Puppet
 
PDF
Continuous Deployment @ AWS Re:Invent
John Schneider
 
PPTX
How Easy to Automate Application Deployment on AWS
Institut Teknologi Sepuluh Nopember Surabaya
 
PDF
Masterless Puppet Using AWS S3 Buckets and IAM Roles
Malcolm Duncanson, CISSP
 
PPTX
AWS DevDay Berlin - Automating building blocks choices you will face with con...
Cobus Bernard
 
PDF
AWS Summit Singapore 2019 | Microsoft DevOps on AWS
AWS Summits
 
PPTX
AWS DevDay Vienna - Automating building blocks choices you will face with con...
Cobus Bernard
 
PDF
[AWS Container Service] Getting Started with Cloud Map, App Mesh and Firecracker
Amazon Web Services Korea
 
PPTX
Perl and Amazon Web Services
Søren Lund
 
PDF
Module-2 compute (2).pdf AWS FIRST MODULE
AnvitaPrakash
 
PDF
AWS Summit Singapore 2019 | Operating Microservices at Hyperscale
AWS Summits
 
KEY
Developing Social Games in the Cloud
Jurriaan Persyn
 
PPTX
AWS DevDay Cologne - Automating building blocks choices you will face with co...
Cobus Bernard
 
PDF
More Containers Less Operations
Donnie Prakoso
 
PDF
One-Man Ops
Jos Boumans
 
PPT
PowerPoint Presentation
lalitjangra9
 
PDF
Awsgsg computebasics
james0417
 
PDF
오토스케일링 제대로 활용하기 (김일호) - AWS 웨비나 시리즈 2015
Amazon Web Services Korea
 
Aws + Puppet = Dynamic Scale
Puppet
 
Chasing AMI - Building Amazon machine images with Puppet, Packer and Jenkins
Tomas Doran
 
Puppet Camp London 2014: Chasing AMI: baking Amazon machine images with Jenki...
Puppet
 
Continuous Deployment @ AWS Re:Invent
John Schneider
 
How Easy to Automate Application Deployment on AWS
Institut Teknologi Sepuluh Nopember Surabaya
 
Masterless Puppet Using AWS S3 Buckets and IAM Roles
Malcolm Duncanson, CISSP
 
AWS DevDay Berlin - Automating building blocks choices you will face with con...
Cobus Bernard
 
AWS Summit Singapore 2019 | Microsoft DevOps on AWS
AWS Summits
 
AWS DevDay Vienna - Automating building blocks choices you will face with con...
Cobus Bernard
 
[AWS Container Service] Getting Started with Cloud Map, App Mesh and Firecracker
Amazon Web Services Korea
 
Perl and Amazon Web Services
Søren Lund
 
Module-2 compute (2).pdf AWS FIRST MODULE
AnvitaPrakash
 
AWS Summit Singapore 2019 | Operating Microservices at Hyperscale
AWS Summits
 
Developing Social Games in the Cloud
Jurriaan Persyn
 
AWS DevDay Cologne - Automating building blocks choices you will face with co...
Cobus Bernard
 
More Containers Less Operations
Donnie Prakoso
 
One-Man Ops
Jos Boumans
 
PowerPoint Presentation
lalitjangra9
 
Awsgsg computebasics
james0417
 
오토스케일링 제대로 활용하기 (김일호) - AWS 웨비나 시리즈 2015
Amazon Web Services Korea
 
Ad

More from Shiva Narayanaswamy (17)

PDF
Pets, Cattle, Rabbits and Microbes
Shiva Narayanaswamy
 
PDF
Leveraging Elastic Web Scale Computing with AWS
Shiva Narayanaswamy
 
PDF
Platform for Innovation - AWS
Shiva Narayanaswamy
 
PDF
ECS and ECR deep dive
Shiva Narayanaswamy
 
PDF
AWS Tagging Strategy
Shiva Narayanaswamy
 
PDF
Build high performing mobile apps, faster with AWS
Shiva Narayanaswamy
 
PDF
Your APIs can be soft and fluffy
Shiva Narayanaswamy
 
PDF
Innovation at Scale - Top 10 AWS questions when you start
Shiva Narayanaswamy
 
PDF
DevOps and AWS
Shiva Narayanaswamy
 
PDF
Event driven infrastructure
Shiva Narayanaswamy
 
PDF
AWS Connectivity, VPC Design and Security Pro Tips
Shiva Narayanaswamy
 
PDF
DevOps, Common use cases, Architectures, Best Practices
Shiva Narayanaswamy
 
PPTX
Application Lifecycle Management and Event Driven Programming on AWS
Shiva Narayanaswamy
 
PPTX
Running Hybrid Cloud Patterns on AWS
Shiva Narayanaswamy
 
PPTX
AWS EC2 and ELB troubleshooting
Shiva Narayanaswamy
 
PPTX
Continuous delivery and deployment on AWS
Shiva Narayanaswamy
 
PPTX
Introduction to DevOps on AWS
Shiva Narayanaswamy
 
Pets, Cattle, Rabbits and Microbes
Shiva Narayanaswamy
 
Leveraging Elastic Web Scale Computing with AWS
Shiva Narayanaswamy
 
Platform for Innovation - AWS
Shiva Narayanaswamy
 
ECS and ECR deep dive
Shiva Narayanaswamy
 
AWS Tagging Strategy
Shiva Narayanaswamy
 
Build high performing mobile apps, faster with AWS
Shiva Narayanaswamy
 
Your APIs can be soft and fluffy
Shiva Narayanaswamy
 
Innovation at Scale - Top 10 AWS questions when you start
Shiva Narayanaswamy
 
DevOps and AWS
Shiva Narayanaswamy
 
Event driven infrastructure
Shiva Narayanaswamy
 
AWS Connectivity, VPC Design and Security Pro Tips
Shiva Narayanaswamy
 
DevOps, Common use cases, Architectures, Best Practices
Shiva Narayanaswamy
 
Application Lifecycle Management and Event Driven Programming on AWS
Shiva Narayanaswamy
 
Running Hybrid Cloud Patterns on AWS
Shiva Narayanaswamy
 
AWS EC2 and ELB troubleshooting
Shiva Narayanaswamy
 
Continuous delivery and deployment on AWS
Shiva Narayanaswamy
 
Introduction to DevOps on AWS
Shiva Narayanaswamy
 
Ad

Recently uploaded (20)

PDF
The Internet - By the numbers, presented at npNOG 11
APNIC
 
PPTX
Networking_Essentials_version_3.0_-_Module_3.pptx
ryan622010
 
PDF
BRKAPP-1102 - Proactive Network and Application Monitoring.pdf
fcesargonca
 
PPTX
Presentation3gsgsgsgsdfgadgsfgfgsfgagsfgsfgzfdgsdgs.pptx
SUB03
 
PPTX
Networking_Essentials_version_3.0_-_Module_5.pptx
ryan622010
 
PDF
Digital burnout toolkit for youth workers and teachers
asociatiastart123
 
PPTX
西班牙巴利阿里群岛大学电子版毕业证{UIBLetterUIB文凭证书}文凭复刻
Taqyea
 
PDF
Cleaning up your RPKI invalids, presented at PacNOG 35
APNIC
 
PPTX
Orchestrating things in Angular application
Peter Abraham
 
PPTX
Lec15_Mutability Immutability-converted.pptx
khanjahanzaib1
 
DOCX
Custom vs. Off-the-Shelf Banking Software
KristenCarter35
 
PDF
BRKACI-1001 - Your First 7 Days of ACI.pdf
fcesargonca
 
PDF
BRKSP-2551 - Introduction to Segment Routing.pdf
fcesargonca
 
PDF
Enhancing Parental Roles in Protecting Children from Online Sexual Exploitati...
ICT Frame Magazine Pvt. Ltd.
 
PDF
FutureCon Seattle 2025 Presentation Slides - You Had One Job
Suzanne Aldrich
 
PPTX
法国巴黎第二大学本科毕业证{Paris 2学费发票Paris 2成绩单}办理方法
Taqyea
 
PPTX
PHIPA-Compliant Web Hosting in Toronto: What Healthcare Providers Must Know
steve198109
 
PPTX
Softuni - Psychology of entrepreneurship
Kalin Karakehayov
 
PPTX
04 Output 1 Instruments & Tools (3).pptx
GEDYIONGebre
 
PDF
Top 10 Testing Procedures to Ensure Your Magento to Shopify Migration Success...
CartCoders
 
The Internet - By the numbers, presented at npNOG 11
APNIC
 
Networking_Essentials_version_3.0_-_Module_3.pptx
ryan622010
 
BRKAPP-1102 - Proactive Network and Application Monitoring.pdf
fcesargonca
 
Presentation3gsgsgsgsdfgadgsfgfgsfgagsfgsfgzfdgsdgs.pptx
SUB03
 
Networking_Essentials_version_3.0_-_Module_5.pptx
ryan622010
 
Digital burnout toolkit for youth workers and teachers
asociatiastart123
 
西班牙巴利阿里群岛大学电子版毕业证{UIBLetterUIB文凭证书}文凭复刻
Taqyea
 
Cleaning up your RPKI invalids, presented at PacNOG 35
APNIC
 
Orchestrating things in Angular application
Peter Abraham
 
Lec15_Mutability Immutability-converted.pptx
khanjahanzaib1
 
Custom vs. Off-the-Shelf Banking Software
KristenCarter35
 
BRKACI-1001 - Your First 7 Days of ACI.pdf
fcesargonca
 
BRKSP-2551 - Introduction to Segment Routing.pdf
fcesargonca
 
Enhancing Parental Roles in Protecting Children from Online Sexual Exploitati...
ICT Frame Magazine Pvt. Ltd.
 
FutureCon Seattle 2025 Presentation Slides - You Had One Job
Suzanne Aldrich
 
法国巴黎第二大学本科毕业证{Paris 2学费发票Paris 2成绩单}办理方法
Taqyea
 
PHIPA-Compliant Web Hosting in Toronto: What Healthcare Providers Must Know
steve198109
 
Softuni - Psychology of entrepreneurship
Kalin Karakehayov
 
04 Output 1 Instruments & Tools (3).pptx
GEDYIONGebre
 
Top 10 Testing Procedures to Ensure Your Magento to Shopify Migration Success...
CartCoders
 

AWS + Puppet = Dynamic Scale

  • 1. ©2015,  Amazon  Web  Services,  Inc.  or  its  affiliates.   All  rights  reserved Shiva  N Solutions  Architect,  AWS @shivamaan AWS  +  Puppet  =  Dynamic  Scale PuppetCamp,  Melbourne  2015
  • 2. Application  Rate  of  Change  Is  Increasing Source  2013  State  of  DevOps  Report   Puppet  Labs,  IT  Revolution  Press Top  Performers 30x  more  frequent   code  deployments More  than  25%  can   deploy on  demand
  • 3. ~11.6s Mean  time between   deployments   (weekday) ~1,079 Max  number  of   deployments  in  a   single  hour ~10,000 Mean  number  of   hosts   simultaneously   receiving  a   deployment   ~30,000 Max  number  of   hosts   simultaneously   receiving  a   deployment   DEPLOYMENTS   AT  AMAZON.COM
  • 4. 75% Reduction  in   outages  triggered   by  software   deployments  since   2006 90% Reduction  in   outage  minutes   triggered  by   software   deployments Business  Value  of  Frequent   Deployments ~0.001% Software   deployments   cause  an outage
  • 5. example.com – Online  auction AWS Sydney Region Public subnet App subnet HAProxy Vertx Glassfish Data subnet Puppet   Stack ELK StackMgmt subnet Jenkins
  • 6. Let’s  build   [  ]  OS   [  ]  Patches [  ]  OS  Configuration [  ]  VM  Templates  (Amazon  Machine  Image) [  ]  VPC [  ]  Networking  (Subnets,  ELBs) [  ]  Network  Security  (NACLs  and  SGs) [  ]  Software [  ]  Application  (Code) [  ]  Services
  • 7. Start  with  a  Base  Image Machine  Images  can  come  from  several  sources.. - AWS  Provided  (Quick  Start) - AWS  Marketplace - Community  AMIs - Build  your  own  AMIs - Migrate  On  Premise  Image We  need  a  server  to   build  an  image  to   build  a  server
  • 8. Let’s  build   [X]  OS   [  ]  Patches [  ]  OS  Configuration [  ]  VM  Templates  (Amazon  Machine  Image) [  ]  VPC [  ]  Networking  (Subnets,  ELBs) [  ]  Network  Security  (NACLs  and  SGs) [  ]  Software [  ]  Application  (Code) [  ]  Services
  • 9. Layers  to  Foundational  Image CI-­‐CD  Pipeline - git push  puppetmanifests - Packer/AMINator - puppet  apply - Test  image - Register  AMI,  meta-­‐data  in  CMDB
  • 10. Let’s  build   [X]  OS   [X]  Patches [X]  OS  Configuration [X]  VM  Templates  (Amazon  Machine  Image) [  ]  VPC [  ]  Networking  (Subnets,  ELBs) [  ]  Network  Security  (NACLs  and  SGs) [  ]  Software [  ]  Application  (Code) [  ]  Services
  • 12. Let’s  build   [X]  OS   [X]  Patches [X]  OS  Configuration [X]  VM  Templates  (Amazon  Machine  Image) [X]  VPC [X]  Networking  (Subnets,  ELBs) [X]  Network  Security  (NACLs  and  SGs) [  ]  Software [  ]  Application  (Code) [  ]  Services
  • 13. Build  Puppet  Stack - EC2  Metadata  service  (or  Resource  Tags) $  aws s3  cp s3://puppetmanifests /etc/puppet/modules   (or   git clone) $  curl  http://169.254.169.254/latest/user-­‐data … hiera_role=PuppetMaster - Self  awareness  by  facter/hiera magic - Self  manifestation  with  puppet  apply
  • 14. Build  Software  Stack - CloudFormation - RDS - Elasticache - S3 - CloudFront - Route  53 - ELB - SNS - Autoscaling groups  of  EC2  Instances - PuppetMaster - Build  ELK  Stack  (PuppetForge) - Build  Glassfish  layer  (Custom  types  and  providers) - Build  Vertx layer  (Custom  types  and  providers) - Build  HAProxy layer  (PuppetForge)
  • 15. Let’s  build   [X]  OS   [X]  Patches [X]  OS  Configuration [X]  VM  Templates  (Amazon  Machine  Image) [X]  VPC [X]  Networking  (Subnets,  ELBs) [X]  Network  Security  (NACLs  and  SGs) [X]  Software [  ]  Application  (Code) [  ]  Services
  • 16. Application  Deployment define  glassfish::app  ( $user   =  'glassfish', $action =  'deploy', $bindaddr =  '127.0.0.1', $mgmtport =  '8080', $deploy_source =  '${glassfish::real_instance_basedir/deployments/${name}.war', )  { require glassfish if ($action ==  'deploy')  { app {  "${name}": ensure   =>  present, mgmtport =>  $mgmtport, user   =>  $user, source   =>  $deploy_source, } } }
  • 17. Let’s  build   [X]  OS   [X]  Patches [X]  OS  Configuration [X]  VM  Templates  (Amazon  Machine  Image) [X]  VPC [X]  Networking  (Subnets,  ELBs) [X]  Network  Security  (NACLs  and  SGs) [X]  Software [X]  Application  (Code) [X]  Services
  • 18. Let’s  run [  ]  Tune [  ]  Release [ ]  Orchestrate  and  Automate
  • 19. Decision,  Decisions… - In  place  deployments  (Puppet  run) - MCollective - CodeDeploy - Immutable  deployments   - Blue-­‐Green  deployment - AMI  baking
  • 21. Bake  an  AMI Puppet  + Sweet  spot   To  AMI  or  not  to  AMI Start  an  instance Configure  the  instance Create  an  AMI  from  your   instance Start  new  ones  from  the  AMI Launch  an  instance Use  metadata  service  to  get   hiera roles Puppet  run  performs  post   launch  config
  • 22. The  Butler  orchestrates *  Golden  AMI  – Glassfish  +  HAProxy +  Vertx +  Applications  with  all  services  turned  off Minor  Release Major  Release + + CodeDeploy Autoscaling group Scheduled Autoscaling group Packer AMI* DynamoDB Autoscaling group Packer AMI* DynamoDB
  • 23. Let’s  run [X]  Tune [X]  Release [X]  Orchestrate  and  Automate
  • 24. example.com – Online  auction AWS Singapore Region Public subnet App subnet HAProxy Vertx Glassfish Data subnet Puppet   Stack ELK StackMgmt subnet Jenkins