SlideShare a Scribd company logo
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 Clouds
Uri 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 Failure
benwaine
 
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.rb
Chris Bunch
 
Introduction to Batch Processing on AWS
Introduction to Batch Processing on AWSIntroduction to Batch Processing on AWS
Introduction to Batch Processing on AWS
Amazon Web Services
 
Empowering Amazon EC2 with GigaSpaces XAP
Empowering Amazon EC2 with GigaSpaces XAPEmpowering Amazon EC2 with GigaSpaces XAP
Empowering Amazon EC2 with GigaSpaces XAP
Uri Cohen
 
Neptune @ SoCal
Neptune @ SoCalNeptune @ SoCal
Neptune @ SoCal
Chris Bunch
 
Mesos meetup @ add this
Mesos meetup @ add thisMesos meetup @ add this
Mesos meetup @ add this
Brenden Matthews
 
Mesos meetup @ add this
Mesos meetup @ add thisMesos meetup @ add this
Mesos meetup @ add this
Brenden Matthews
 
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
devopsjourney
 
Terraform Architech
Terraform ArchitechTerraform Architech
Terraform Architech
David Hsu
 
Aws atlanta march_2015
Aws atlanta march_2015Aws atlanta march_2015
Aws atlanta march_2015
Adam 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-2013
Amazon Web Services
 
Cloudformation vs terraform_vs_ansible
Cloudformation vs terraform_vs_ansibleCloudformation vs terraform_vs_ansible
Cloudformation vs terraform_vs_ansible
Geert 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 Example
API 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 Sharma
CodeOps Technologies LLP
 
Ansible
AnsibleAnsible
Ansible
Ali Boustani
 
5 Quick Wins for the Cloud
5 Quick Wins for the Cloud5 Quick Wins for the Cloud
5 Quick Wins for the Cloud
RightScale
 

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 alcalde
GEMMMAD
 
Genset/ Generator Set 1400KVA
Genset/ Generator Set 1400KVAGenset/ Generator Set 1400KVA
Genset/ Generator Set 1400KVA
BENRY APRIANTO HUTAPEA
 
Neoclasico renni parica
Neoclasico renni paricaNeoclasico renni parica
Neoclasico renni parica
renni parica
 
Surgical & Non-surgical Treatment
Surgical & Non-surgical TreatmentSurgical & Non-surgical Treatment
Surgical & Non-surgical Treatment
Aphrodite Cosmetic Centre
 
Paid social media jobs
Paid social media jobsPaid social media jobs
Paid social media jobs
steilmeteor
 
Psychological Outcomes in Cosmetic Surgery
Psychological Outcomes in Cosmetic SurgeryPsychological Outcomes in Cosmetic Surgery
Psychological Outcomes in Cosmetic Surgery
amyhiggins444
 
Glosario melissa
Glosario melissaGlosario melissa
Glosario melissa
Gabriel Lopez
 
Clock divide by 3
Clock divide by 3Clock divide by 3
Clock divide by 3
Ashok Reddy
 
Alumnes marta hermo ppt
Alumnes marta hermo pptAlumnes marta hermo ppt
Alumnes marta hermo ppt
GEMMMAD
 
Facebook Statistics
Facebook StatisticsFacebook Statistics
Facebook Statistics
Vladimira Rosic
 
Chi square
Chi squareChi square
Actividad para trabajar fonemas
Actividad para trabajar fonemas Actividad para trabajar fonemas
Actividad para trabajar fonemas
SUHAIL MOLINA NAVARRO
 
Te amo mama
Te amo mamaTe amo mama
Annual Report
Annual ReportAnnual Report
Annual Report
boutougeli
 
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
Vendere 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 Plan
Amazon 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 Manager
Amazon 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 AWS
Shiva 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 2017
Amazon Web Services
 
오토스케일링 제대로 활용하기 (김일호) - AWS 웨비나 시리즈 2015
오토스케일링 제대로 활용하기 (김일호) - AWS 웨비나 시리즈 2015오토스케일링 제대로 활용하기 (김일호) - AWS 웨비나 시리즈 2015
오토스케일링 제대로 활용하기 (김일호) - AWS 웨비나 시리즈 2015
Amazon 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 cloud
David 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 Talks
Amazon 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 Sydney
Amazon 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 Security
AWS 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 Scale
Amazon Web Services
 
The Rocky Cloud Road
The Rocky Cloud RoadThe Rocky Cloud Road
The Rocky Cloud Road
Gert 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 EC2
Amazon Web Services
 
Getting to Walk with DevOps
Getting to Walk with DevOpsGetting to Walk with DevOps
Getting to Walk with DevOps
Eklove Mohan
 
Aws meetup ssm
Aws meetup ssmAws meetup ssm
Aws meetup ssm
Manjunath H Gowda
 
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
 
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
Institut Teknologi Sepuluh Nopember Surabaya
 
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
 
Managing Your Cloud Assets
Managing Your Cloud AssetsManaging Your Cloud Assets
Managing Your Cloud Assets
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 cloud
David 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 updated
Shikha 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

Lecture 1 Introduction to games development
Lecture 1 Introduction to games developmentLecture 1 Introduction to games development
Lecture 1 Introduction to games development
abdulrafaychaudhry
 
Using IESVE for Room Loads Analysis - Australia & New Zealand
Using IESVE for Room Loads Analysis - Australia & New ZealandUsing IESVE for Room Loads Analysis - Australia & New Zealand
Using IESVE for Room Loads Analysis - Australia & New Zealand
IES VE
 
Globus Compute Introduction - GlobusWorld 2024
Globus Compute Introduction - GlobusWorld 2024Globus Compute Introduction - GlobusWorld 2024
Globus Compute Introduction - GlobusWorld 2024
Globus
 
Advanced Flow Concepts Every Developer Should Know
Advanced Flow Concepts Every Developer Should KnowAdvanced Flow Concepts Every Developer Should Know
Advanced Flow Concepts Every Developer Should Know
Peter Caitens
 
Developing Distributed High-performance Computing Capabilities of an Open Sci...
Developing Distributed High-performance Computing Capabilities of an Open Sci...Developing Distributed High-performance Computing Capabilities of an Open Sci...
Developing Distributed High-performance Computing Capabilities of an Open Sci...
Globus
 
Prosigns: Transforming Business with Tailored Technology Solutions
Prosigns: Transforming Business with Tailored Technology SolutionsProsigns: Transforming Business with Tailored Technology Solutions
Prosigns: Transforming Business with Tailored Technology Solutions
Prosigns
 
Webinar: Salesforce Document Management 2.0 - Smarter, Faster, Better
Webinar: Salesforce Document Management 2.0 - Smarter, Faster, BetterWebinar: Salesforce Document Management 2.0 - Smarter, Faster, Better
Webinar: Salesforce Document Management 2.0 - Smarter, Faster, Better
XfilesPro
 
Into the Box 2024 - Keynote Day 2 Slides.pdf
Into the Box 2024 - Keynote Day 2 Slides.pdfInto the Box 2024 - Keynote Day 2 Slides.pdf
Into the Box 2024 - Keynote Day 2 Slides.pdf
Ortus Solutions, Corp
 
Enhancing Research Orchestration Capabilities at ORNL.pdf
Enhancing Research Orchestration Capabilities at ORNL.pdfEnhancing Research Orchestration Capabilities at ORNL.pdf
Enhancing Research Orchestration Capabilities at ORNL.pdf
Globus
 
Providing Globus Services to Users of JASMIN for Environmental Data Analysis
Providing Globus Services to Users of JASMIN for Environmental Data AnalysisProviding Globus Services to Users of JASMIN for Environmental Data Analysis
Providing Globus Services to Users of JASMIN for Environmental Data Analysis
Globus
 
SOCRadar Research Team: Latest Activities of IntelBroker
SOCRadar Research Team: Latest Activities of IntelBrokerSOCRadar Research Team: Latest Activities of IntelBroker
SOCRadar Research Team: Latest Activities of IntelBroker
SOCRadar
 
How Recreation Management Software Can Streamline Your Operations.pptx
How Recreation Management Software Can Streamline Your Operations.pptxHow Recreation Management Software Can Streamline Your Operations.pptx
How Recreation Management Software Can Streamline Your Operations.pptx
wottaspaceseo
 
BoxLang: Review our Visionary Licenses of 2024
BoxLang: Review our Visionary Licenses of 2024BoxLang: Review our Visionary Licenses of 2024
BoxLang: Review our Visionary Licenses of 2024
Ortus Solutions, Corp
 
Cracking the code review at SpringIO 2024
Cracking the code review at SpringIO 2024Cracking the code review at SpringIO 2024
Cracking the code review at SpringIO 2024
Paco van Beckhoven
 
Accelerate Enterprise Software Engineering with Platformless
Accelerate Enterprise Software Engineering with PlatformlessAccelerate Enterprise Software Engineering with Platformless
Accelerate Enterprise Software Engineering with Platformless
WSO2
 
Understanding Globus Data Transfers with NetSage
Understanding Globus Data Transfers with NetSageUnderstanding Globus Data Transfers with NetSage
Understanding Globus Data Transfers with NetSage
Globus
 
Globus Connect Server Deep Dive - GlobusWorld 2024
Globus Connect Server Deep Dive - GlobusWorld 2024Globus Connect Server Deep Dive - GlobusWorld 2024
Globus Connect Server Deep Dive - GlobusWorld 2024
Globus
 
How to Position Your Globus Data Portal for Success Ten Good Practices
How to Position Your Globus Data Portal for Success Ten Good PracticesHow to Position Your Globus Data Portal for Success Ten Good Practices
How to Position Your Globus Data Portal for Success Ten Good Practices
Globus
 
top nidhi software solution freedownload
top nidhi software solution freedownloadtop nidhi software solution freedownload
top nidhi software solution freedownload
vrstrong314
 
Visitor Management System in India- Vizman.app
Visitor Management System in India- Vizman.appVisitor Management System in India- Vizman.app
Visitor Management System in India- Vizman.app
NaapbooksPrivateLimi
 

Recently uploaded (20)

Lecture 1 Introduction to games development
Lecture 1 Introduction to games developmentLecture 1 Introduction to games development
Lecture 1 Introduction to games development
 
Using IESVE for Room Loads Analysis - Australia & New Zealand
Using IESVE for Room Loads Analysis - Australia & New ZealandUsing IESVE for Room Loads Analysis - Australia & New Zealand
Using IESVE for Room Loads Analysis - Australia & New Zealand
 
Globus Compute Introduction - GlobusWorld 2024
Globus Compute Introduction - GlobusWorld 2024Globus Compute Introduction - GlobusWorld 2024
Globus Compute Introduction - GlobusWorld 2024
 
Advanced Flow Concepts Every Developer Should Know
Advanced Flow Concepts Every Developer Should KnowAdvanced Flow Concepts Every Developer Should Know
Advanced Flow Concepts Every Developer Should Know
 
Developing Distributed High-performance Computing Capabilities of an Open Sci...
Developing Distributed High-performance Computing Capabilities of an Open Sci...Developing Distributed High-performance Computing Capabilities of an Open Sci...
Developing Distributed High-performance Computing Capabilities of an Open Sci...
 
Prosigns: Transforming Business with Tailored Technology Solutions
Prosigns: Transforming Business with Tailored Technology SolutionsProsigns: Transforming Business with Tailored Technology Solutions
Prosigns: Transforming Business with Tailored Technology Solutions
 
Webinar: Salesforce Document Management 2.0 - Smarter, Faster, Better
Webinar: Salesforce Document Management 2.0 - Smarter, Faster, BetterWebinar: Salesforce Document Management 2.0 - Smarter, Faster, Better
Webinar: Salesforce Document Management 2.0 - Smarter, Faster, Better
 
Into the Box 2024 - Keynote Day 2 Slides.pdf
Into the Box 2024 - Keynote Day 2 Slides.pdfInto the Box 2024 - Keynote Day 2 Slides.pdf
Into the Box 2024 - Keynote Day 2 Slides.pdf
 
Enhancing Research Orchestration Capabilities at ORNL.pdf
Enhancing Research Orchestration Capabilities at ORNL.pdfEnhancing Research Orchestration Capabilities at ORNL.pdf
Enhancing Research Orchestration Capabilities at ORNL.pdf
 
Providing Globus Services to Users of JASMIN for Environmental Data Analysis
Providing Globus Services to Users of JASMIN for Environmental Data AnalysisProviding Globus Services to Users of JASMIN for Environmental Data Analysis
Providing Globus Services to Users of JASMIN for Environmental Data Analysis
 
SOCRadar Research Team: Latest Activities of IntelBroker
SOCRadar Research Team: Latest Activities of IntelBrokerSOCRadar Research Team: Latest Activities of IntelBroker
SOCRadar Research Team: Latest Activities of IntelBroker
 
How Recreation Management Software Can Streamline Your Operations.pptx
How Recreation Management Software Can Streamline Your Operations.pptxHow Recreation Management Software Can Streamline Your Operations.pptx
How Recreation Management Software Can Streamline Your Operations.pptx
 
BoxLang: Review our Visionary Licenses of 2024
BoxLang: Review our Visionary Licenses of 2024BoxLang: Review our Visionary Licenses of 2024
BoxLang: Review our Visionary Licenses of 2024
 
Cracking the code review at SpringIO 2024
Cracking the code review at SpringIO 2024Cracking the code review at SpringIO 2024
Cracking the code review at SpringIO 2024
 
Accelerate Enterprise Software Engineering with Platformless
Accelerate Enterprise Software Engineering with PlatformlessAccelerate Enterprise Software Engineering with Platformless
Accelerate Enterprise Software Engineering with Platformless
 
Understanding Globus Data Transfers with NetSage
Understanding Globus Data Transfers with NetSageUnderstanding Globus Data Transfers with NetSage
Understanding Globus Data Transfers with NetSage
 
Globus Connect Server Deep Dive - GlobusWorld 2024
Globus Connect Server Deep Dive - GlobusWorld 2024Globus Connect Server Deep Dive - GlobusWorld 2024
Globus Connect Server Deep Dive - GlobusWorld 2024
 
How to Position Your Globus Data Portal for Success Ten Good Practices
How to Position Your Globus Data Portal for Success Ten Good PracticesHow to Position Your Globus Data Portal for Success Ten Good Practices
How to Position Your Globus Data Portal for Success Ten Good Practices
 
top nidhi software solution freedownload
top nidhi software solution freedownloadtop nidhi software solution freedownload
top nidhi software solution freedownload
 
Visitor Management System in India- Vizman.app
Visitor Management System in India- Vizman.appVisitor Management System in India- Vizman.app
Visitor Management System in India- Vizman.app
 

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