SlideShare a Scribd company logo
1 of 17
AWS Context
Feb 12, 2017
Efficient way to manage
environments in AWS
2
• Shorter infrastructure cycles.
• Better predictability into failures.
• Time-saving for customer releases
• Reliable dynamic infrastructure
Efficiently Managing Environments :- Need
3
Managing Environments :- Key Components
Build
Deploy
Operate
Monitor
• Designing the right
rules and policies
• Configuring templates
to scale seamlessly.
• Integrate code-
deployment efficiently
with build
• Picking up right
configuration based on
environment
• Achieving faster boot-
times
• Blue- Green
Deployment for high
availability
• Promotion plan for
releases
• Rollback plan for any
failures
• Right set of Cloudwatch
monitoring.
• Different level of alarms
for failures.
• Auto-trigger post critical
Alarm actions
4
Use of Single Master Template
• Pass all the necessary inputs for all the
stacks only using a stack function.
• Each output resource can further be a
cloud-formation template creating the given
stack.
• Create common stacks such as alarms and
security which other stacks will re-use.
Build
5
Configure the same environment to scale differently Build
• Pass the Environment type as Input Parameter.
• Create the mapping for each environment type.
• Pass the mapping as reference while creating the AWS
resource.
• Example :-
• A RDS instance can now be m4.large in Performance environment but
m4.x.large in production without changing access rules and security
policies
6
Using User-data to automate code-deployments Build
Creating the right
configuration files
with AWS resource
e.g. instance file ,
metadata files etc.
Setting the right
role and
permissions to the
EC2 instance.
Copying the right
versioned
application and
deployment builds
from S3
Sourcing the
instance data file
Running the chef-
client on the given
role from instance
file
User data should be set as
a part of the cloud-
formation :-
http://answersforaws.com/
episodes/4-user-data-
cloud-init-cloudformation/
7
Stack Functions
• All of the above features in Cloud-formations can be automated
using stack functions :-
• create_environment
• delete_enviornment
• update_stack
• validate_enviornment.
• End to end environment create, update and delete at a single step.
• Building Cloud-Formation Dynamically
https://github.com/bazaarvoice/cloudformation-ruby-dsl
• Testing Cloud-Formation :- https://github.com/stelligent/cfn_nag
Build
8
• Custom AMI’s are built to reduce the Boot Time for
a EC2 instance to scale up.
• With the help of packer and automation the ability
to refresh environments can be scaled up.
• Polling job to figure out when the latest Base AMI
is available.
• Packer configuration to configure the right
repository for the Custom AMI.
• Packer script to bake the ami whenever the polling
job succeeds.
Customizing AMI’s Deploy
9
Break-down deployments into logical flows Deploy
All
the cookbooks
you are going
to use
All the recipes
you are going
to use
Roles and
their naming
convention
The number
of
environments
you are going
to use
Avoid the use of one giant cookbook
• We currently use 5 roles , each deriving
from a base role, each further divided
into cookbooks
10
Configuring Chef for Environments :- Guiding Patterns Deploy
• Vital to separate the deployment code for different
environments
• Light-weight deployment roles, independent of run-lists.
• Run-lists stored as part of default recipe of any cookbook.
• Env_Run_list to separate different run-list for different
environments.
• Use of Wrapper cookbooks to customize the settings of
upstream cookbooks without any forking.
11
Blue-Green Deployment uildOperate
Step 1:-
• Secondary ELB
stacked Down
12
Blue-Green Deployment :- Build Promote uildOperate
Step 2:-
• Secondary ELB
stacked up with
new build
13
Blue-Green Deployment :- Replace Stacks Operate
Step 3:-
• Stacks
Exchanged
between the
ELB’s
14
Build Release/Rollback :- Best Practices Operate
• Never promote/rollback between versions by changing DNS.
• Never register/deregister instances with/from the ELB
• Use of ELB health checks for service failures
• Use build-systems and S3 to keep a track to build version
numbers on each of the ELB’s
• Live File
• Pre-Live
• Live-Prev file
15
Alarm Stack :- Building the Right Trigger Monitor
• Alarms rules should be generic for all AWS resources in the environment.
• Each resource should have a unique alarm to help identify the exact failure.
• Warns the user before the actual failure, so the corrective action is taken.
• At the time nearing a failure, should trigger auto-healing steps to avoid an failure.
16
• Cloudwatch is used to monitor AWS resources like EC2,
on unusual usage pattern like High CPU, less memory
the alarms are triggered.
• Alarm stack is created by a Cloud Formation template
consisting of SNS Notifications . These SNS notification
further are hooked to third party apps like email, Pager-
duty etc.
• Alarm Stacks consists of level of Alarms depending on
severity of Cloudwatch Metrics failure
• Warning Alarm :- Just notify on email,
• Critical Alarm :- Pager-duty Call + Auto-scaling
event
• Alarms + Lambda :- https://medium.com/cohealo-
engineering/how-set-up-a-slack-channel-to-be-an-
aws-sns-subscriber-63b4d57ad3ea#.kcqs9cl8x
Alarm Stack :- Defining level of alarms
Database Stack with Alarms
Monitor
17
• Based on Metrics such as CPU-Utilization, ELB requests configure scaling
policies.
• Time to scale-up an instance should be considered .
• Using Scheduled Actions to change scaling policies of ASG’s for time-based
change in traffic
• Scale up early, scale down slowly.
Alarm Stack :- Scaling Based on Metrics Monitor

More Related Content

What's hot

[Jun AWS 201] Elastic Beanstalk for Startups
[Jun AWS 201] Elastic Beanstalk for Startups[Jun AWS 201] Elastic Beanstalk for Startups
[Jun AWS 201] Elastic Beanstalk for StartupsAmazon Web Services Korea
 
Active Cloud DB at CloudComp '10
Active Cloud DB at CloudComp '10Active Cloud DB at CloudComp '10
Active Cloud DB at CloudComp '10Chris Bunch
 
MongoDB in the Clouds
MongoDB in the CloudsMongoDB in the Clouds
MongoDB in the CloudsUri Cohen
 
DPC 2016 - 53 Minutes or Less - Architecting For Failure
DPC 2016 - 53 Minutes or Less - Architecting For FailureDPC 2016 - 53 Minutes or Less - Architecting For Failure
DPC 2016 - 53 Minutes or Less - Architecting For Failurebenwaine
 
Auto Scaling Guided by Code
Auto Scaling Guided by CodeAuto Scaling Guided by Code
Auto Scaling Guided by CodePablo Cantero
 
AppScale @ LA.rb
AppScale @ LA.rbAppScale @ LA.rb
AppScale @ LA.rbChris Bunch
 
Introduction to Batch Processing on AWS
Introduction to Batch Processing on AWSIntroduction to Batch Processing on AWS
Introduction to Batch Processing on AWSAmazon Web Services
 
Empowering Amazon EC2 with GigaSpaces XAP
Empowering Amazon EC2 with GigaSpaces XAPEmpowering Amazon EC2 with GigaSpaces XAP
Empowering Amazon EC2 with GigaSpaces XAPUri Cohen
 
Understand AWS OpsWorks - A DevOps Tool from AWS
Understand AWS OpsWorks - A DevOps Tool from AWSUnderstand AWS OpsWorks - A DevOps Tool from AWS
Understand AWS OpsWorks - A DevOps Tool from AWSdevopsjourney
 
Terraform Architech
Terraform ArchitechTerraform Architech
Terraform ArchitechDavid Hsu
 
Aws atlanta march_2015
Aws atlanta march_2015Aws atlanta march_2015
Aws atlanta march_2015Adam Book
 
Empowering Publishers - Hosting Provider Selection Process - May-15-2013
Empowering Publishers - Hosting Provider Selection Process - May-15-2013Empowering Publishers - Hosting Provider Selection Process - May-15-2013
Empowering Publishers - Hosting Provider Selection Process - May-15-2013Amazon Web Services
 
Cloudformation vs terraform_vs_ansible
Cloudformation vs terraform_vs_ansibleCloudformation vs terraform_vs_ansible
Cloudformation vs terraform_vs_ansibleGeert Theys
 
Infrastructure Automation on AWS using a Real-World Customer Example
Infrastructure Automation on AWS using a Real-World Customer ExampleInfrastructure Automation on AWS using a Real-World Customer Example
Infrastructure Automation on AWS using a Real-World Customer ExampleAPI Talent
 
Training And Serving ML Model Using Kubeflow by Jayesh Sharma
Training And Serving ML Model Using Kubeflow by Jayesh SharmaTraining And Serving ML Model Using Kubeflow by Jayesh Sharma
Training And Serving ML Model Using Kubeflow by Jayesh SharmaCodeOps Technologies LLP
 
5 Quick Wins for the Cloud
5 Quick Wins for the Cloud5 Quick Wins for the Cloud
5 Quick Wins for the CloudRightScale
 

What's hot (20)

[Jun AWS 201] Elastic Beanstalk for Startups
[Jun AWS 201] Elastic Beanstalk for Startups[Jun AWS 201] Elastic Beanstalk for Startups
[Jun AWS 201] Elastic Beanstalk for Startups
 
Active Cloud DB at CloudComp '10
Active Cloud DB at CloudComp '10Active Cloud DB at CloudComp '10
Active Cloud DB at CloudComp '10
 
MongoDB in the Clouds
MongoDB in the CloudsMongoDB in the Clouds
MongoDB in the Clouds
 
DPC 2016 - 53 Minutes or Less - Architecting For Failure
DPC 2016 - 53 Minutes or Less - Architecting For FailureDPC 2016 - 53 Minutes or Less - Architecting For Failure
DPC 2016 - 53 Minutes or Less - Architecting For Failure
 
Auto Scaling Guided by Code
Auto Scaling Guided by CodeAuto Scaling Guided by Code
Auto Scaling Guided by Code
 
AppScale @ LA.rb
AppScale @ LA.rbAppScale @ LA.rb
AppScale @ LA.rb
 
Introduction to Batch Processing on AWS
Introduction to Batch Processing on AWSIntroduction to Batch Processing on AWS
Introduction to Batch Processing on AWS
 
Empowering Amazon EC2 with GigaSpaces XAP
Empowering Amazon EC2 with GigaSpaces XAPEmpowering Amazon EC2 with GigaSpaces XAP
Empowering Amazon EC2 with GigaSpaces XAP
 
Neptune @ SoCal
Neptune @ SoCalNeptune @ SoCal
Neptune @ SoCal
 
Mesos meetup @ add this
Mesos meetup @ add thisMesos meetup @ add this
Mesos meetup @ add this
 
Mesos meetup @ add this
Mesos meetup @ add thisMesos meetup @ add this
Mesos meetup @ add this
 
Understand AWS OpsWorks - A DevOps Tool from AWS
Understand AWS OpsWorks - A DevOps Tool from AWSUnderstand AWS OpsWorks - A DevOps Tool from AWS
Understand AWS OpsWorks - A DevOps Tool from AWS
 
Terraform Architech
Terraform ArchitechTerraform Architech
Terraform Architech
 
Aws atlanta march_2015
Aws atlanta march_2015Aws atlanta march_2015
Aws atlanta march_2015
 
Empowering Publishers - Hosting Provider Selection Process - May-15-2013
Empowering Publishers - Hosting Provider Selection Process - May-15-2013Empowering Publishers - Hosting Provider Selection Process - May-15-2013
Empowering Publishers - Hosting Provider Selection Process - May-15-2013
 
Cloudformation vs terraform_vs_ansible
Cloudformation vs terraform_vs_ansibleCloudformation vs terraform_vs_ansible
Cloudformation vs terraform_vs_ansible
 
Infrastructure Automation on AWS using a Real-World Customer Example
Infrastructure Automation on AWS using a Real-World Customer ExampleInfrastructure Automation on AWS using a Real-World Customer Example
Infrastructure Automation on AWS using a Real-World Customer Example
 
Training And Serving ML Model Using Kubeflow by Jayesh Sharma
Training And Serving ML Model Using Kubeflow by Jayesh SharmaTraining And Serving ML Model Using Kubeflow by Jayesh Sharma
Training And Serving ML Model Using Kubeflow by Jayesh Sharma
 
Ansible
AnsibleAnsible
Ansible
 
5 Quick Wins for the Cloud
5 Quick Wins for the Cloud5 Quick Wins for the Cloud
5 Quick Wins for the Cloud
 

Viewers also liked

Ponència visita alcalde
Ponència visita alcaldePonència visita alcalde
Ponència visita alcaldeGEMMMAD
 
Neoclasico renni parica
Neoclasico renni paricaNeoclasico renni parica
Neoclasico renni paricarenni parica
 
Paid social media jobs
Paid social media jobsPaid social media jobs
Paid social media jobssteilmeteor
 
Psychological Outcomes in Cosmetic Surgery
Psychological Outcomes in Cosmetic SurgeryPsychological Outcomes in Cosmetic Surgery
Psychological Outcomes in Cosmetic Surgeryamyhiggins444
 
Clock divide by 3
Clock divide by 3Clock divide by 3
Clock divide by 3Ashok Reddy
 
Alumnes marta hermo ppt
Alumnes marta hermo pptAlumnes marta hermo ppt
Alumnes marta hermo pptGEMMMAD
 
Come ottenere una consulenza utile per far crescere davvero la tua azienda
Come ottenere una consulenza utile per far crescere davvero la tua aziendaCome ottenere una consulenza utile per far crescere davvero la tua azienda
Come ottenere una consulenza utile per far crescere davvero la tua aziendaVendere 2.0
 
Deep Dive - Amazon Virtual Private Cloud (VPC)
Deep Dive - Amazon Virtual Private Cloud (VPC)Deep Dive - Amazon Virtual Private Cloud (VPC)
Deep Dive - Amazon Virtual Private Cloud (VPC)Amazon Web Services
 

Viewers also liked (16)

Ponència visita alcalde
Ponència visita alcaldePonència visita alcalde
Ponència visita alcalde
 
Genset/ Generator Set 1400KVA
Genset/ Generator Set 1400KVAGenset/ Generator Set 1400KVA
Genset/ Generator Set 1400KVA
 
Neoclasico renni parica
Neoclasico renni paricaNeoclasico renni parica
Neoclasico renni parica
 
Surgical & Non-surgical Treatment
Surgical & Non-surgical TreatmentSurgical & Non-surgical Treatment
Surgical & Non-surgical Treatment
 
Paid social media jobs
Paid social media jobsPaid social media jobs
Paid social media jobs
 
Psychological Outcomes in Cosmetic Surgery
Psychological Outcomes in Cosmetic SurgeryPsychological Outcomes in Cosmetic Surgery
Psychological Outcomes in Cosmetic Surgery
 
Glosario melissa
Glosario melissaGlosario melissa
Glosario melissa
 
Clock divide by 3
Clock divide by 3Clock divide by 3
Clock divide by 3
 
Alumnes marta hermo ppt
Alumnes marta hermo pptAlumnes marta hermo ppt
Alumnes marta hermo ppt
 
Facebook Statistics
Facebook StatisticsFacebook Statistics
Facebook Statistics
 
Chi square
Chi squareChi square
Chi square
 
Actividad para trabajar fonemas
Actividad para trabajar fonemas Actividad para trabajar fonemas
Actividad para trabajar fonemas
 
Te amo mama
Te amo mamaTe amo mama
Te amo mama
 
Annual Report
Annual ReportAnnual Report
Annual Report
 
Come ottenere una consulenza utile per far crescere davvero la tua azienda
Come ottenere una consulenza utile per far crescere davvero la tua aziendaCome ottenere una consulenza utile per far crescere davvero la tua azienda
Come ottenere una consulenza utile per far crescere davvero la tua azienda
 
Deep Dive - Amazon Virtual Private Cloud (VPC)
Deep Dive - Amazon Virtual Private Cloud (VPC)Deep Dive - Amazon Virtual Private Cloud (VPC)
Deep Dive - Amazon Virtual Private Cloud (VPC)
 

Similar to Efficient way to manage environments in AWS

Day 5 - AWS Autoscaling Master Class - The New Capacity Plan
Day 5 - AWS Autoscaling Master Class - The New Capacity PlanDay 5 - AWS Autoscaling Master Class - The New Capacity Plan
Day 5 - AWS Autoscaling Master Class - The New Capacity PlanAmazon Web Services
 
ENT401 Deep Dive with Amazon EC2 Systems Manager
ENT401 Deep Dive with Amazon EC2 Systems ManagerENT401 Deep Dive with Amazon EC2 Systems Manager
ENT401 Deep Dive with Amazon EC2 Systems ManagerAmazon Web Services
 
Leveraging elastic web scale computing with AWS
 Leveraging elastic web scale computing with AWS Leveraging elastic web scale computing with AWS
Leveraging elastic web scale computing with AWSShiva Narayanaswamy
 
Configuration Management in the Cloud | AWS Public Sector Summit 2017
Configuration Management in the Cloud | AWS Public Sector Summit 2017Configuration Management in the Cloud | AWS Public Sector Summit 2017
Configuration Management in the Cloud | AWS Public Sector Summit 2017Amazon Web Services
 
오토스케일링 제대로 활용하기 (김일호) - AWS 웨비나 시리즈 2015
오토스케일링 제대로 활용하기 (김일호) - AWS 웨비나 시리즈 2015오토스케일링 제대로 활용하기 (김일호) - AWS 웨비나 시리즈 2015
오토스케일링 제대로 활용하기 (김일호) - AWS 웨비나 시리즈 2015Amazon Web Services Korea
 
Nuts and bolts of running a popular site in the aws cloud
Nuts and bolts of running a popular site in the aws cloudNuts and bolts of running a popular site in the aws cloud
Nuts and bolts of running a popular site in the aws cloudDavid Veksler
 
Configuration Management in the Cloud - AWS Online Tech Talks
Configuration Management in the Cloud - AWS Online Tech TalksConfiguration Management in the Cloud - AWS Online Tech Talks
Configuration Management in the Cloud - AWS Online Tech TalksAmazon Web Services
 
Pragmatic Container Security (Sponsored by Trend Micro) - AWS Summit Sydney
Pragmatic Container Security (Sponsored by Trend Micro) - AWS Summit SydneyPragmatic Container Security (Sponsored by Trend Micro) - AWS Summit Sydney
Pragmatic Container Security (Sponsored by Trend Micro) - AWS Summit SydneyAmazon Web Services
 
AWS Community Day - Vitaliy Shtym - Pragmatic Container Security
AWS Community Day - Vitaliy Shtym - Pragmatic Container SecurityAWS Community Day - Vitaliy Shtym - Pragmatic Container Security
AWS Community Day - Vitaliy Shtym - Pragmatic Container SecurityAWS Chicago
 
NEW LAUNCH! Amazon EC2 Systems Manager for Hybrid Cloud Management at Scale
NEW LAUNCH! Amazon EC2 Systems Manager for Hybrid Cloud Management at ScaleNEW LAUNCH! Amazon EC2 Systems Manager for Hybrid Cloud Management at Scale
NEW LAUNCH! Amazon EC2 Systems Manager for Hybrid Cloud Management at ScaleAmazon Web Services
 
The Rocky Cloud Road
The Rocky Cloud RoadThe Rocky Cloud Road
The Rocky Cloud RoadGert Drapers
 
AWS APAC Webinar Week - Getting The Most From EC2
AWS APAC Webinar Week - Getting The Most From EC2AWS APAC Webinar Week - Getting The Most From EC2
AWS APAC Webinar Week - Getting The Most From EC2Amazon Web Services
 
Getting to Walk with DevOps
Getting to Walk with DevOpsGetting to Walk with DevOps
Getting to Walk with DevOpsEklove Mohan
 
Managing Docker & ECS Based Applications with AWS Elastic Beanstalk - DevDay ...
Managing Docker & ECS Based Applications with AWS Elastic Beanstalk - DevDay ...Managing Docker & ECS Based Applications with AWS Elastic Beanstalk - DevDay ...
Managing Docker & ECS Based Applications with AWS Elastic Beanstalk - DevDay ...Amazon Web Services
 
AWS re:Invent 2016: Development Workflow with Docker and Amazon ECS (CON302)
AWS re:Invent 2016: Development Workflow with Docker and Amazon ECS (CON302)AWS re:Invent 2016: Development Workflow with Docker and Amazon ECS (CON302)
AWS re:Invent 2016: Development Workflow with Docker and Amazon ECS (CON302)Amazon Web Services
 
Auto scaling websites in the cloud
Auto scaling websites in the cloudAuto scaling websites in the cloud
Auto scaling websites in the cloudDavid Veksler
 
How kubernetes operators can rescue dev secops in midst of a pandemic updated
How kubernetes operators can rescue dev secops in midst of a pandemic updatedHow kubernetes operators can rescue dev secops in midst of a pandemic updated
How kubernetes operators can rescue dev secops in midst of a pandemic updatedShikha Srivastava
 

Similar to Efficient way to manage environments in AWS (20)

Day 5 - AWS Autoscaling Master Class - The New Capacity Plan
Day 5 - AWS Autoscaling Master Class - The New Capacity PlanDay 5 - AWS Autoscaling Master Class - The New Capacity Plan
Day 5 - AWS Autoscaling Master Class - The New Capacity Plan
 
ENT401 Deep Dive with Amazon EC2 Systems Manager
ENT401 Deep Dive with Amazon EC2 Systems ManagerENT401 Deep Dive with Amazon EC2 Systems Manager
ENT401 Deep Dive with Amazon EC2 Systems Manager
 
Leveraging elastic web scale computing with AWS
 Leveraging elastic web scale computing with AWS Leveraging elastic web scale computing with AWS
Leveraging elastic web scale computing with AWS
 
Configuration Management in the Cloud | AWS Public Sector Summit 2017
Configuration Management in the Cloud | AWS Public Sector Summit 2017Configuration Management in the Cloud | AWS Public Sector Summit 2017
Configuration Management in the Cloud | AWS Public Sector Summit 2017
 
오토스케일링 제대로 활용하기 (김일호) - AWS 웨비나 시리즈 2015
오토스케일링 제대로 활용하기 (김일호) - AWS 웨비나 시리즈 2015오토스케일링 제대로 활용하기 (김일호) - AWS 웨비나 시리즈 2015
오토스케일링 제대로 활용하기 (김일호) - AWS 웨비나 시리즈 2015
 
Nuts and bolts of running a popular site in the aws cloud
Nuts and bolts of running a popular site in the aws cloudNuts and bolts of running a popular site in the aws cloud
Nuts and bolts of running a popular site in the aws cloud
 
Configuration Management in the Cloud - AWS Online Tech Talks
Configuration Management in the Cloud - AWS Online Tech TalksConfiguration Management in the Cloud - AWS Online Tech Talks
Configuration Management in the Cloud - AWS Online Tech Talks
 
Pragmatic Container Security (Sponsored by Trend Micro) - AWS Summit Sydney
Pragmatic Container Security (Sponsored by Trend Micro) - AWS Summit SydneyPragmatic Container Security (Sponsored by Trend Micro) - AWS Summit Sydney
Pragmatic Container Security (Sponsored by Trend Micro) - AWS Summit Sydney
 
AWS Community Day - Vitaliy Shtym - Pragmatic Container Security
AWS Community Day - Vitaliy Shtym - Pragmatic Container SecurityAWS Community Day - Vitaliy Shtym - Pragmatic Container Security
AWS Community Day - Vitaliy Shtym - Pragmatic Container Security
 
NEW LAUNCH! Amazon EC2 Systems Manager for Hybrid Cloud Management at Scale
NEW LAUNCH! Amazon EC2 Systems Manager for Hybrid Cloud Management at ScaleNEW LAUNCH! Amazon EC2 Systems Manager for Hybrid Cloud Management at Scale
NEW LAUNCH! Amazon EC2 Systems Manager for Hybrid Cloud Management at Scale
 
The Rocky Cloud Road
The Rocky Cloud RoadThe Rocky Cloud Road
The Rocky Cloud Road
 
AWS APAC Webinar Week - Getting The Most From EC2
AWS APAC Webinar Week - Getting The Most From EC2AWS APAC Webinar Week - Getting The Most From EC2
AWS APAC Webinar Week - Getting The Most From EC2
 
Getting to Walk with DevOps
Getting to Walk with DevOpsGetting to Walk with DevOps
Getting to Walk with DevOps
 
Aws meetup ssm
Aws meetup ssmAws meetup ssm
Aws meetup ssm
 
Managing Docker & ECS Based Applications with AWS Elastic Beanstalk - DevDay ...
Managing Docker & ECS Based Applications with AWS Elastic Beanstalk - DevDay ...Managing Docker & ECS Based Applications with AWS Elastic Beanstalk - DevDay ...
Managing Docker & ECS Based Applications with AWS Elastic Beanstalk - DevDay ...
 
How Easy to Automate Application Deployment on AWS
How Easy to Automate Application Deployment on AWSHow Easy to Automate Application Deployment on AWS
How Easy to Automate Application Deployment on AWS
 
AWS re:Invent 2016: Development Workflow with Docker and Amazon ECS (CON302)
AWS re:Invent 2016: Development Workflow with Docker and Amazon ECS (CON302)AWS re:Invent 2016: Development Workflow with Docker and Amazon ECS (CON302)
AWS re:Invent 2016: Development Workflow with Docker and Amazon ECS (CON302)
 
Managing Your Cloud Assets
Managing Your Cloud AssetsManaging Your Cloud Assets
Managing Your Cloud Assets
 
Auto scaling websites in the cloud
Auto scaling websites in the cloudAuto scaling websites in the cloud
Auto scaling websites in the cloud
 
How kubernetes operators can rescue dev secops in midst of a pandemic updated
How kubernetes operators can rescue dev secops in midst of a pandemic updatedHow kubernetes operators can rescue dev secops in midst of a pandemic updated
How kubernetes operators can rescue dev secops in midst of a pandemic updated
 

Recently uploaded

Direct Style Effect Systems - The Print[A] Example - A Comprehension Aid
Direct Style Effect Systems -The Print[A] Example- A Comprehension AidDirect Style Effect Systems -The Print[A] Example- A Comprehension Aid
Direct Style Effect Systems - The Print[A] Example - A Comprehension AidPhilip Schwarz
 
AI Mastery 201: Elevating Your Workflow with Advanced LLM Techniques
AI Mastery 201: Elevating Your Workflow with Advanced LLM TechniquesAI Mastery 201: Elevating Your Workflow with Advanced LLM Techniques
AI Mastery 201: Elevating Your Workflow with Advanced LLM TechniquesVictorSzoltysek
 
HR Software Buyers Guide in 2024 - HRSoftware.com
HR Software Buyers Guide in 2024 - HRSoftware.comHR Software Buyers Guide in 2024 - HRSoftware.com
HR Software Buyers Guide in 2024 - HRSoftware.comFatema Valibhai
 
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...Health
 
TECUNIQUE: Success Stories: IT Service provider
TECUNIQUE: Success Stories: IT Service providerTECUNIQUE: Success Stories: IT Service provider
TECUNIQUE: Success Stories: IT Service providermohitmore19
 
Azure_Native_Qumulo_High_Performance_Compute_Benchmarks.pdf
Azure_Native_Qumulo_High_Performance_Compute_Benchmarks.pdfAzure_Native_Qumulo_High_Performance_Compute_Benchmarks.pdf
Azure_Native_Qumulo_High_Performance_Compute_Benchmarks.pdfryanfarris8
 
A Secure and Reliable Document Management System is Essential.docx
A Secure and Reliable Document Management System is Essential.docxA Secure and Reliable Document Management System is Essential.docx
A Secure and Reliable Document Management System is Essential.docxComplianceQuest1
 
Unveiling the Tech Salsa of LAMs with Janus in Real-Time Applications
Unveiling the Tech Salsa of LAMs with Janus in Real-Time ApplicationsUnveiling the Tech Salsa of LAMs with Janus in Real-Time Applications
Unveiling the Tech Salsa of LAMs with Janus in Real-Time ApplicationsAlberto González Trastoy
 
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...Steffen Staab
 
5 Signs You Need a Fashion PLM Software.pdf
5 Signs You Need a Fashion PLM Software.pdf5 Signs You Need a Fashion PLM Software.pdf
5 Signs You Need a Fashion PLM Software.pdfWave PLM
 
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️Delhi Call girls
 
Software Quality Assurance Interview Questions
Software Quality Assurance Interview QuestionsSoftware Quality Assurance Interview Questions
Software Quality Assurance Interview QuestionsArshad QA
 
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️Delhi Call girls
 
Unlocking the Future of AI Agents with Large Language Models
Unlocking the Future of AI Agents with Large Language ModelsUnlocking the Future of AI Agents with Large Language Models
Unlocking the Future of AI Agents with Large Language Modelsaagamshah0812
 
Introducing Microsoft’s new Enterprise Work Management (EWM) Solution
Introducing Microsoft’s new Enterprise Work Management (EWM) SolutionIntroducing Microsoft’s new Enterprise Work Management (EWM) Solution
Introducing Microsoft’s new Enterprise Work Management (EWM) SolutionOnePlan Solutions
 
The Ultimate Test Automation Guide_ Best Practices and Tips.pdf
The Ultimate Test Automation Guide_ Best Practices and Tips.pdfThe Ultimate Test Automation Guide_ Best Practices and Tips.pdf
The Ultimate Test Automation Guide_ Best Practices and Tips.pdfkalichargn70th171
 
10 Trends Likely to Shape Enterprise Technology in 2024
10 Trends Likely to Shape Enterprise Technology in 202410 Trends Likely to Shape Enterprise Technology in 2024
10 Trends Likely to Shape Enterprise Technology in 2024Mind IT Systems
 
How to Choose the Right Laravel Development Partner in New York City_compress...
How to Choose the Right Laravel Development Partner in New York City_compress...How to Choose the Right Laravel Development Partner in New York City_compress...
How to Choose the Right Laravel Development Partner in New York City_compress...software pro Development
 
Right Money Management App For Your Financial Goals
Right Money Management App For Your Financial GoalsRight Money Management App For Your Financial Goals
Right Money Management App For Your Financial GoalsJhone kinadey
 
Define the academic and professional writing..pdf
Define the academic and professional writing..pdfDefine the academic and professional writing..pdf
Define the academic and professional writing..pdfPearlKirahMaeRagusta1
 

Recently uploaded (20)

Direct Style Effect Systems - The Print[A] Example - A Comprehension Aid
Direct Style Effect Systems -The Print[A] Example- A Comprehension AidDirect Style Effect Systems -The Print[A] Example- A Comprehension Aid
Direct Style Effect Systems - The Print[A] Example - A Comprehension Aid
 
AI Mastery 201: Elevating Your Workflow with Advanced LLM Techniques
AI Mastery 201: Elevating Your Workflow with Advanced LLM TechniquesAI Mastery 201: Elevating Your Workflow with Advanced LLM Techniques
AI Mastery 201: Elevating Your Workflow with Advanced LLM Techniques
 
HR Software Buyers Guide in 2024 - HRSoftware.com
HR Software Buyers Guide in 2024 - HRSoftware.comHR Software Buyers Guide in 2024 - HRSoftware.com
HR Software Buyers Guide in 2024 - HRSoftware.com
 
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
 
TECUNIQUE: Success Stories: IT Service provider
TECUNIQUE: Success Stories: IT Service providerTECUNIQUE: Success Stories: IT Service provider
TECUNIQUE: Success Stories: IT Service provider
 
Azure_Native_Qumulo_High_Performance_Compute_Benchmarks.pdf
Azure_Native_Qumulo_High_Performance_Compute_Benchmarks.pdfAzure_Native_Qumulo_High_Performance_Compute_Benchmarks.pdf
Azure_Native_Qumulo_High_Performance_Compute_Benchmarks.pdf
 
A Secure and Reliable Document Management System is Essential.docx
A Secure and Reliable Document Management System is Essential.docxA Secure and Reliable Document Management System is Essential.docx
A Secure and Reliable Document Management System is Essential.docx
 
Unveiling the Tech Salsa of LAMs with Janus in Real-Time Applications
Unveiling the Tech Salsa of LAMs with Janus in Real-Time ApplicationsUnveiling the Tech Salsa of LAMs with Janus in Real-Time Applications
Unveiling the Tech Salsa of LAMs with Janus in Real-Time Applications
 
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...
 
5 Signs You Need a Fashion PLM Software.pdf
5 Signs You Need a Fashion PLM Software.pdf5 Signs You Need a Fashion PLM Software.pdf
5 Signs You Need a Fashion PLM Software.pdf
 
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
 
Software Quality Assurance Interview Questions
Software Quality Assurance Interview QuestionsSoftware Quality Assurance Interview Questions
Software Quality Assurance Interview Questions
 
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
 
Unlocking the Future of AI Agents with Large Language Models
Unlocking the Future of AI Agents with Large Language ModelsUnlocking the Future of AI Agents with Large Language Models
Unlocking the Future of AI Agents with Large Language Models
 
Introducing Microsoft’s new Enterprise Work Management (EWM) Solution
Introducing Microsoft’s new Enterprise Work Management (EWM) SolutionIntroducing Microsoft’s new Enterprise Work Management (EWM) Solution
Introducing Microsoft’s new Enterprise Work Management (EWM) Solution
 
The Ultimate Test Automation Guide_ Best Practices and Tips.pdf
The Ultimate Test Automation Guide_ Best Practices and Tips.pdfThe Ultimate Test Automation Guide_ Best Practices and Tips.pdf
The Ultimate Test Automation Guide_ Best Practices and Tips.pdf
 
10 Trends Likely to Shape Enterprise Technology in 2024
10 Trends Likely to Shape Enterprise Technology in 202410 Trends Likely to Shape Enterprise Technology in 2024
10 Trends Likely to Shape Enterprise Technology in 2024
 
How to Choose the Right Laravel Development Partner in New York City_compress...
How to Choose the Right Laravel Development Partner in New York City_compress...How to Choose the Right Laravel Development Partner in New York City_compress...
How to Choose the Right Laravel Development Partner in New York City_compress...
 
Right Money Management App For Your Financial Goals
Right Money Management App For Your Financial GoalsRight Money Management App For Your Financial Goals
Right Money Management App For Your Financial Goals
 
Define the academic and professional writing..pdf
Define the academic and professional writing..pdfDefine the academic and professional writing..pdf
Define the academic and professional writing..pdf
 

Efficient way to manage environments in AWS

  • 1. AWS Context Feb 12, 2017 Efficient way to manage environments in AWS
  • 2. 2 • Shorter infrastructure cycles. • Better predictability into failures. • Time-saving for customer releases • Reliable dynamic infrastructure Efficiently Managing Environments :- Need
  • 3. 3 Managing Environments :- Key Components Build Deploy Operate Monitor • Designing the right rules and policies • Configuring templates to scale seamlessly. • Integrate code- deployment efficiently with build • Picking up right configuration based on environment • Achieving faster boot- times • Blue- Green Deployment for high availability • Promotion plan for releases • Rollback plan for any failures • Right set of Cloudwatch monitoring. • Different level of alarms for failures. • Auto-trigger post critical Alarm actions
  • 4. 4 Use of Single Master Template • Pass all the necessary inputs for all the stacks only using a stack function. • Each output resource can further be a cloud-formation template creating the given stack. • Create common stacks such as alarms and security which other stacks will re-use. Build
  • 5. 5 Configure the same environment to scale differently Build • Pass the Environment type as Input Parameter. • Create the mapping for each environment type. • Pass the mapping as reference while creating the AWS resource. • Example :- • A RDS instance can now be m4.large in Performance environment but m4.x.large in production without changing access rules and security policies
  • 6. 6 Using User-data to automate code-deployments Build Creating the right configuration files with AWS resource e.g. instance file , metadata files etc. Setting the right role and permissions to the EC2 instance. Copying the right versioned application and deployment builds from S3 Sourcing the instance data file Running the chef- client on the given role from instance file User data should be set as a part of the cloud- formation :- http://answersforaws.com/ episodes/4-user-data- cloud-init-cloudformation/
  • 7. 7 Stack Functions • All of the above features in Cloud-formations can be automated using stack functions :- • create_environment • delete_enviornment • update_stack • validate_enviornment. • End to end environment create, update and delete at a single step. • Building Cloud-Formation Dynamically https://github.com/bazaarvoice/cloudformation-ruby-dsl • Testing Cloud-Formation :- https://github.com/stelligent/cfn_nag Build
  • 8. 8 • Custom AMI’s are built to reduce the Boot Time for a EC2 instance to scale up. • With the help of packer and automation the ability to refresh environments can be scaled up. • Polling job to figure out when the latest Base AMI is available. • Packer configuration to configure the right repository for the Custom AMI. • Packer script to bake the ami whenever the polling job succeeds. Customizing AMI’s Deploy
  • 9. 9 Break-down deployments into logical flows Deploy All the cookbooks you are going to use All the recipes you are going to use Roles and their naming convention The number of environments you are going to use Avoid the use of one giant cookbook • We currently use 5 roles , each deriving from a base role, each further divided into cookbooks
  • 10. 10 Configuring Chef for Environments :- Guiding Patterns Deploy • Vital to separate the deployment code for different environments • Light-weight deployment roles, independent of run-lists. • Run-lists stored as part of default recipe of any cookbook. • Env_Run_list to separate different run-list for different environments. • Use of Wrapper cookbooks to customize the settings of upstream cookbooks without any forking.
  • 11. 11 Blue-Green Deployment uildOperate Step 1:- • Secondary ELB stacked Down
  • 12. 12 Blue-Green Deployment :- Build Promote uildOperate Step 2:- • Secondary ELB stacked up with new build
  • 13. 13 Blue-Green Deployment :- Replace Stacks Operate Step 3:- • Stacks Exchanged between the ELB’s
  • 14. 14 Build Release/Rollback :- Best Practices Operate • Never promote/rollback between versions by changing DNS. • Never register/deregister instances with/from the ELB • Use of ELB health checks for service failures • Use build-systems and S3 to keep a track to build version numbers on each of the ELB’s • Live File • Pre-Live • Live-Prev file
  • 15. 15 Alarm Stack :- Building the Right Trigger Monitor • Alarms rules should be generic for all AWS resources in the environment. • Each resource should have a unique alarm to help identify the exact failure. • Warns the user before the actual failure, so the corrective action is taken. • At the time nearing a failure, should trigger auto-healing steps to avoid an failure.
  • 16. 16 • Cloudwatch is used to monitor AWS resources like EC2, on unusual usage pattern like High CPU, less memory the alarms are triggered. • Alarm stack is created by a Cloud Formation template consisting of SNS Notifications . These SNS notification further are hooked to third party apps like email, Pager- duty etc. • Alarm Stacks consists of level of Alarms depending on severity of Cloudwatch Metrics failure • Warning Alarm :- Just notify on email, • Critical Alarm :- Pager-duty Call + Auto-scaling event • Alarms + Lambda :- https://medium.com/cohealo- engineering/how-set-up-a-slack-channel-to-be-an- aws-sns-subscriber-63b4d57ad3ea#.kcqs9cl8x Alarm Stack :- Defining level of alarms Database Stack with Alarms Monitor
  • 17. 17 • Based on Metrics such as CPU-Utilization, ELB requests configure scaling policies. • Time to scale-up an instance should be considered . • Using Scheduled Actions to change scaling policies of ASG’s for time-based change in traffic • Scale up early, scale down slowly. Alarm Stack :- Scaling Based on Metrics Monitor