SlideShare una empresa de Scribd logo
1 de 61
Descargar para leer sin conexión
CLOUD SERVICE EXPERT
Nextlink Company Profile
Nextlink Technology Co., Ltd.
LINK YOU TO THE CLOUD
Introduction
Nextlink
Founded in 2006 | Hong Kong . Taiwan . Thailand
is an internationally renowned Asia-Pacific agent, voted one
of the most promising AWS partner by CIO Solution
Magazine. We are an expert in cloud services: specialized,
speedy, and with an eye and heart for detail. We actively
integrate our own cloud, ICT, cost optimization, hosting, and
migration services, with the best international resources to
develop customized solutions, such as global CDN networks,
video streaming, and Big Data.
LINK YOU TO THE CLOUD
Our Services
www.nextlink.com.hkISO 9001 | ISO 27001
Cloud
Management
• Infrastructure
• Application
• Information
Security
• Migration
Strategy
• Architecture
• Operation
• 24/7 Monitoring
• Emergency
Notification
Cloud
Migration
Smart
IDC
Smart
Monitoring
Support
Center
Customized
Service
• Multi-loop
Backup Network
• Exclusive
Hosting Services
• Help Desk
Technical Support
• Customized
Training
• Customized Project,
Solution Planning,
Deployment and
Execution.
LINK YOU TO THE CLOUD
Products and Solutions
www.nextlink.com.hkISO 9001 | ISO 27001
Big	DataSmart Monitoring IoTSecurity Streaming
X
CLOUD SERVICE EXPERT
Deep Dive on AWS Code Services
and AWS CloudFormation
DevOps on AWS
LINK YOU TO THE CLOUDAWS CodePipeline Integrations
Depl
oy
AWS
CodeBuild
AWS
CodeDeploy
AWS
CodeCommit
Amazon S3 AWS
Elastic Beanstalk
AWS
CloudFormation
AWS
OpsWorks
Third-party
tooling
AWS
CodePipeline
www.nextlink.com.hkISO 9001 | ISO 27001
Source Build Test Deploy
LINK YOU TO THE CLOUDAWS Infrastructure Deployment
AWS
OpsWorks
AWS
CloudFormation
AWS Elastic
Beanstalk
DevOps framework for
application lifecycle
management and
automation
Templates to deploy &
update infrastructure
as code
Automated resource
management – web
apps made easy
DIY
On Demand
DIY, on demand
resources: EC2, S3,
custom AMI’s, etc.
Convenience Control
LINK YOU TO THE CLOUDInfrastructure as Code
www.nextlink.com.hkISO 9001 | ISO 27001
A practice in which traditional infrastructure management
techniques are supplemented by or replaced with code-
based tools and software development techniques.
LINK YOU TO THE CLOUDInfrastructure as Code Workflow
It’s all software!
Text Editor Git/SVN/Perforce Review Tools
Syntax
Validation Tools
AWS Services
Code
Version Control
Code Review
Integrate
Deploy
www.nextlink.com.hkISO 9001 | ISO 27001
AWS Resources
LINK YOU TO THE CLOUDInfrastructure as Code Workflow
Operating System and Host Configuration
Application Configuration
www.nextlink.com.hkISO 9001 | ISO 27001
LINK YOU TO THE CLOUDInfrastructure as Code Workflow
AWS Resources
Operating System and Host
Configuration
Application Configuration
AWS CloudFormation
AWS CloudFormation
AWS CloudFormation
Amazon Virtual Private Cloud
(Amazon VPC)
Amazon Elastic Compute Cloud
(Amazon EC2)
AWS Identity and Access
Management (IAM)
Amazon Relational Database
Service (Amazon RDS)
Amazon Simple Storage Service
(Amazon S3)
AWS CodePipeline
Microsoft Windows Registry
Linux networking
OpenSSH
LDAP
Active Directory Domain
registration
Centralized logging
System metrics
Deployment agents
Host monitoring
Application dependencies
Application configuration
Service registration
Management scripts
Database credentials
LINK YOU TO THE CLOUDApplication Deployment Approaches
• Deploy in place
• Rolling updates
• Blue-Green Deployment (aka Red-Black Deployment)
• Multiple environments deployment
• Support A/B testing
• “ Rolling DNS”
• Blue-Green Deployment (with ELB and ASG)
• Alternate auto scaling group
• Avoid messing with DNS
www.nextlink.com.hkISO 9001 | ISO 27001
LINK YOU TO THE CLOUDDeploy in place – Rolling update
www.nextlink.com.hkISO 9001 | ISO 27001
LINK YOU TO THE CLOUDDeploy in place – Rolling update
www.nextlink.com.hkISO 9001 | ISO 27001
LINK YOU TO THE CLOUDDeploy in place – Rolling update
www.nextlink.com.hkISO 9001 | ISO 27001
LINK YOU TO THE CLOUDDeploy in place – Rolling update
www.nextlink.com.hkISO 9001 | ISO 27001
LINK YOU TO THE CLOUDDeploy in place – Rolling update
www.nextlink.com.hkISO 9001 | ISO 27001
LINK YOU TO THE CLOUDDeploy in place – Rolling update
www.nextlink.com.hkISO 9001 | ISO 27001
LINK YOU TO THE CLOUDBlue-Green deployment
www.nextlink.com.hkISO 9001 | ISO 27001
Amazon
Route 53
EC2 Instances
ELB
100%
DynamoDB
MySQL RDS
Instance
ElastiCache
Cache Node
LINK YOU TO THE CLOUDBlue-Green deployment
www.nextlink.com.hkISO 9001 | ISO 27001
Amazon
Route 53
EC2 Instances
ELB
EC2 Instances
ELB
100%
UAT
DynamoDB
MySQL RDS
Instance
ElastiCache Cache
Node
LINK YOU TO THE CLOUDBlue-Green deployment
www.nextlink.com.hkISO 9001 | ISO 27001
Amazon
Route 53
EC2 Instances
ELB
EC2 Instances
ELB
90% 10%
DynamoDB
MySQL RDS
Instance
ElastiCache Cache
Node
LINK YOU TO THE CLOUDBlue-Green deployment
www.nextlink.com.hkISO 9001 | ISO 27001
Amazon
Route 53
EC2 Instances
ELB
EC2 Instances
ELB
50% 50%
DynamoDB
MySQL RDS
Instance
ElastiCache Cache
Node
LINK YOU TO THE CLOUDBlue-Green deployment
www.nextlink.com.hkISO 9001 | ISO 27001
Amazon
Route 53
EC2 Instances
ELB
EC2 Instances
ELB
0% 100%
DynamoDB
MySQL RDS
Instance
ElastiCache Cache
Node
LINK YOU TO THE CLOUDBlue-Green deployment
www.nextlink.com.hkISO 9001 | ISO 27001
Amazon
Route 53
EC2 Instances
ELB
EC2 Instances
ELB
0% 100%
DynamoDB
MySQL RDS
Instance
ElastiCache
Cache Node
LINK YOU TO THE CLOUDBlue-Green deployment with ELB
www.nextlink.com.hkISO 9001 | ISO 27001
LINK YOU TO THE CLOUDCloudFormation
www.nextlink.com.hkISO 9001 | ISO 27001
• Create templates of the infrastructure and
applications you want to run on AWS.
• Have CloudFormation automatically provision the
required AWS resources and their relationships
from the templates.
• Easily version, replicate, or update the
infrastructure and applications using the
templates.
• Integrates with other development, CI/CD, and
management tools.
LINK YOU TO THE CLOUDBenefits
www.nextlink.com.hkISO 9001 | ISO 27001
Templated resource
provisioning
Infrastructure
as code
Declarative
and flexible
Easy to use
LINK YOU TO THE CLOUDTemplated resource provisioning
www.nextlink.com.hkISO 9001 | ISO 27001
• Create templates to describe the AWS
resources used to run your application
• Provision identical copies of a stack
LINK YOU TO THE CLOUDInfrastructure as code
www.nextlink.com.hkISO 9001 | ISO 27001
• Templates can be stored in a source
control system
• Track all changes made to your
infrastructure stack
• Modify and update resources in a
controlled and predictable way
LINK YOU TO THE CLOUDDeclarative and flexible
www.nextlink.com.hkISO 9001 | ISO 27001
• Just choose the resources and
configurations you need
• Customize your template through
parameters
LINK YOU TO THE CLOUDEasy to use
www.nextlink.com.hkISO 9001 | ISO 27001
• Access through console, CLI, or SDKs
• Start with one of the many sample
templates
• Integrate with your development and
management tools
LINK YOU TO THE CLOUDCommon use cases
www.nextlink.com.hkISO 9001 | ISO 27001
Stack	replication Blue/green	
deployments
Infrastructure	
as	code
Infrastructure
scale out
LINK YOU TO THE CLOUDPricing
www.nextlink.com.hkISO 9001 | ISO 27001
• There is no additional charge for CloudFormation
• Customers pay only for the AWS resources (e.g., EC2 instances,
EBS volumes) created using CloudFormation
LINK YOU TO THE CLOUDUse a wide range of AWS services
and more …
LINK YOU TO THE CLOUDCloudFormation Concept & Terminology
LINK YOU TO THE CLOUDCloudFormation template: JSON
Plain text
Perfect for version control
Can be validated
LINK YOU TO THE CLOUDCloudFormation template: JSON
LINK YOU TO THE CLOUDCloudFormation template: JSON
LINK YOU TO THE CLOUDTemplate components
Headers Description of what your stack does, contains, and so on
Parameters Provision time values that add structured flexibility and customization
Mappings Predefined conditional case statements
Conditionals Conditional values set through evaluations of passed references
Resources AWS resource definitions
Outputs Resulting attributes of stack resource creation
LINK YOU TO THE CLOUD“How do I plan my stacks?”
LINK YOU TO THE CLOUDHow to get start?
Start with
existing Template
LINK YOU TO THE CLOUDAWS CloudFormation Designer
LINK YOU TO THE CLOUDCloudFormation Designer toolbar
Toolbar Navigation
Open: Local files/S3/stack
Save: Local files/launch stack
Validation: AWS resource schema
Refresh: Synchronize JSON text changes
LINK YOU TO THE CLOUDCloudFormation Designer Resources
All supported resources
Organized by service
Drag and drop onto canvas
Color-coded icons
LINK YOU TO THE CLOUDCloudFormation Designer canvas
Container Resources
e.g. EC2 VPCs, subnets
Connections between resources
e.g. Ref, DependsOn, GetAtt
Contextual Resource menu
Code/Clone/Delete/Docs
LINK YOU TO THE CLOUDCloudFormation Designer JSON Editor
Ctrl+Space : Within the Properties key of a
resource, lists all the available properties
for the resource
Ctrl+F : Search for a value in the JSON
editor.
Ctrl+ : Formats the text with proper
indentation and new lines
Ctrl+Shift+ : Removes all white space
LINK YOU TO THE CLOUDAWS CloudFormer
LINK YOU TO THE CLOUDCreate Stack
LINK YOU TO THE CLOUDOperate Stack
LINK YOU TO THE CLOUDCloudFormation Change Sets
Preview the set of actions CloudFormation will take on
your behalf before you create or update stacks
Change Sets show you what resources will be created,
updated or replaced. This ensures that only expected
operations are executed
Original Stack
1.Create	change	set
Change set
2.View	change	set
Change set
3.Execute	Change	Set
AWS Cloud Formation
updates your stack
LINK YOU TO THE CLOUDDebug Stack
LINK YOU TO THE CLOUDAWS CloudFormation: Application Stack Example
Template File
Defining Stack
Git
Subversion
Mercurial
Dev
Test
Prod
The entire application can be represented
in an AWS CloudFormation template.
Use the version control system
of your choice to store and track
changes to this template
Build out multiple
environments, such as for
Development, Test, and
Production using the template
LINK YOU TO THE CLOUDBootstrapping applications and handling updates
Option 1
Use Amazon EC2 UserData, which is available as a property of
AWS::EC2::Instance resources
LINK YOU TO THE CLOUDBootstrapping applications and handling updates
Option 2
CloudFormation provides helper scripts for deployment
within your EC2 instances
Metadata key—
AWS::CloudFormation::Init
The cfn-init helper script reads this
metadata key and installs the
packages listed in this key (for
example, httpd, mysql, and php); cfn-
init also retrieves and expands files
listed as sources
LINK YOU TO THE CLOUDBootstrapping applications and handling updates
Option 2
Install packages with the native package management tool:
LINK YOU TO THE CLOUDBest practices
Reference: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/best-practices.html
Planning and organizing
• Organize your stacks by lifecycle and ownership
• Reuse templates to replicate stacks in multiple environments
• Verify quotas for all resource types
• Use nested stacks to reuse common template patterns
Creating templates
• Do not embed credentials in your templates
• Use AWS-specific parameter types
• Use parameter constraints
• Validate templates before using them
LINK YOU TO THE CLOUDBest practices
Reference: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/best-practices.html
Managing stacks
• Manage all stack resources through CloudFormation
• Create change sets before updating your stacks
• Use stack policies
• Use CloudTrail to log CloudFormation calls
• Use code reviews and revision controls to manage your templates
LINK YOU TO THE CLOUDBest practices
{
"Effect":"Allow”,
"Action":[
"cloudformation:CreateStack",
"cloudformation:UpdateStack”
],
"Condition":{
"ForAllValues:StringLike":{
"cloudformation:TemplateUrl":
["https://.amazonaws.com/TestBucket/*"]
}
}
}
{
"Effect":"Allow”,
"Action":[
"cloudformation:UpdateStack”
],
"Condition":{
"ForAllValues:StringEquals":{
"cloudformation:StackPolicyUrl":
["https://.amazonaws.com/TestBucket/Foo.json
"]
}
}
}
Only allow specific templates and stack policies
LINK YOU TO THE CLOUDBest practices
{
"Effect":"Allow”,
"Action":[
"cloudformation:CreateStack”
],
"Condition":{
"ForAllValues:StringEquals":{
"cloudformation:ResourceType":
[”AWS::EC2::Instance”…]
}
}
}
{
"Effect":"Allow”,
"Action":[
"cloudformation:CreateStack”
]
},
{
"Effect":”Deny”,
"Action":[
"cloudformation:CreateStack”
]
"Condition":{
"ForAnyValue:StringLike":{
"cloudformation:ResourceType":
[”AWS::IAM::*"]
}
}
Only allow specific resource types
DevOps on AWS: Deep Dive on AWS Code Services and AWS CloudFormation
DevOps on AWS: Deep Dive on AWS Code Services and AWS CloudFormation

Más contenido relacionado

La actualidad más candente

WKS401 Deploy a Deep Learning Framework on Amazon ECS and EC2 Spot Instances
WKS401 Deploy a Deep Learning Framework on Amazon ECS and EC2 Spot InstancesWKS401 Deploy a Deep Learning Framework on Amazon ECS and EC2 Spot Instances
WKS401 Deploy a Deep Learning Framework on Amazon ECS and EC2 Spot InstancesAmazon Web Services
 
Automate the Provisioning of Secure Developer Environments on AWS PPT
 Automate the Provisioning of Secure Developer Environments on AWS PPT Automate the Provisioning of Secure Developer Environments on AWS PPT
Automate the Provisioning of Secure Developer Environments on AWS PPTAmazon Web Services
 
ENT312 NEW LAUNCH! Better Software Procurement and Management Using AWS Marke...
ENT312 NEW LAUNCH! Better Software Procurement and Management Using AWS Marke...ENT312 NEW LAUNCH! Better Software Procurement and Management Using AWS Marke...
ENT312 NEW LAUNCH! Better Software Procurement and Management Using AWS Marke...Amazon Web Services
 
Introduction to Amazon Lightsail
Introduction to Amazon LightsailIntroduction to Amazon Lightsail
Introduction to Amazon LightsailAmazon Web Services
 
AWS re:Invent 2016: Automated DevOps and Continuous Delivery (DEV211)
AWS re:Invent 2016: Automated DevOps and Continuous Delivery (DEV211)AWS re:Invent 2016: Automated DevOps and Continuous Delivery (DEV211)
AWS re:Invent 2016: Automated DevOps and Continuous Delivery (DEV211)Amazon Web Services
 
CI/CD on AWS: Deploy Everything All the Time | AWS Public Sector Summit 2016
CI/CD on AWS: Deploy Everything All the Time | AWS Public Sector Summit 2016CI/CD on AWS: Deploy Everything All the Time | AWS Public Sector Summit 2016
CI/CD on AWS: Deploy Everything All the Time | AWS Public Sector Summit 2016Amazon Web Services
 
Effective Collaboration & Delivery with GitHub and AWS Code Deploy – GitHub
Effective Collaboration & Delivery with GitHub and AWS Code Deploy – GitHubEffective Collaboration & Delivery with GitHub and AWS Code Deploy – GitHub
Effective Collaboration & Delivery with GitHub and AWS Code Deploy – GitHubAmazon Web Services
 
Automating Security Event Reponse
Automating Security Event ReponseAutomating Security Event Reponse
Automating Security Event ReponseAmazon Web Services
 
Running Enterprise Workloads on AWS
Running Enterprise Workloads on AWSRunning Enterprise Workloads on AWS
Running Enterprise Workloads on AWSAmazon Web Services
 
AWS re:Invent 2016: DevOps on AWS: Accelerating Software Delivery with the AW...
AWS re:Invent 2016: DevOps on AWS: Accelerating Software Delivery with the AW...AWS re:Invent 2016: DevOps on AWS: Accelerating Software Delivery with the AW...
AWS re:Invent 2016: DevOps on AWS: Accelerating Software Delivery with the AW...Amazon Web Services
 
AWS re:Invent 2016: Deploying and Managing .NET Pipelines and Microsoft Workl...
AWS re:Invent 2016: Deploying and Managing .NET Pipelines and Microsoft Workl...AWS re:Invent 2016: Deploying and Managing .NET Pipelines and Microsoft Workl...
AWS re:Invent 2016: Deploying and Managing .NET Pipelines and Microsoft Workl...Amazon Web Services
 
DevOps for Business Transformation at Ellucian
DevOps for Business Transformation at EllucianDevOps for Business Transformation at Ellucian
DevOps for Business Transformation at EllucianREAN Cloud
 
AWS re:Invent 2016: Automating and Scaling Infrastructure Administration with...
AWS re:Invent 2016: Automating and Scaling Infrastructure Administration with...AWS re:Invent 2016: Automating and Scaling Infrastructure Administration with...
AWS re:Invent 2016: Automating and Scaling Infrastructure Administration with...Amazon Web Services
 
AWS re:Invent 2016: Using AWS Lambda to Build Control Systems for Your AWS In...
AWS re:Invent 2016: Using AWS Lambda to Build Control Systems for Your AWS In...AWS re:Invent 2016: Using AWS Lambda to Build Control Systems for Your AWS In...
AWS re:Invent 2016: Using AWS Lambda to Build Control Systems for Your AWS In...Amazon Web Services
 
Maximizing Business Value as You Migrate to AWS
Maximizing Business Value as You Migrate to AWSMaximizing Business Value as You Migrate to AWS
Maximizing Business Value as You Migrate to AWSAmazon Web Services
 
Creative content storage in the AWS Cloud
Creative content storage in the AWS CloudCreative content storage in the AWS Cloud
Creative content storage in the AWS CloudAmazon Web Services
 
ANZ Dev Lounge Session - Feb 2017
ANZ Dev Lounge Session - Feb 2017ANZ Dev Lounge Session - Feb 2017
ANZ Dev Lounge Session - Feb 2017Amazon Web Services
 
AWS Cloud Controls for Security - Usman Shakeel
AWS Cloud Controls for Security  - Usman ShakeelAWS Cloud Controls for Security  - Usman Shakeel
AWS Cloud Controls for Security - Usman ShakeelAmazon Web Services
 

La actualidad más candente (20)

WKS401 Deploy a Deep Learning Framework on Amazon ECS and EC2 Spot Instances
WKS401 Deploy a Deep Learning Framework on Amazon ECS and EC2 Spot InstancesWKS401 Deploy a Deep Learning Framework on Amazon ECS and EC2 Spot Instances
WKS401 Deploy a Deep Learning Framework on Amazon ECS and EC2 Spot Instances
 
Best of re:Invent
Best of re:InventBest of re:Invent
Best of re:Invent
 
Automate the Provisioning of Secure Developer Environments on AWS PPT
 Automate the Provisioning of Secure Developer Environments on AWS PPT Automate the Provisioning of Secure Developer Environments on AWS PPT
Automate the Provisioning of Secure Developer Environments on AWS PPT
 
ENT312 NEW LAUNCH! Better Software Procurement and Management Using AWS Marke...
ENT312 NEW LAUNCH! Better Software Procurement and Management Using AWS Marke...ENT312 NEW LAUNCH! Better Software Procurement and Management Using AWS Marke...
ENT312 NEW LAUNCH! Better Software Procurement and Management Using AWS Marke...
 
Introduction to Amazon Lightsail
Introduction to Amazon LightsailIntroduction to Amazon Lightsail
Introduction to Amazon Lightsail
 
AWS re:Invent 2016: Automated DevOps and Continuous Delivery (DEV211)
AWS re:Invent 2016: Automated DevOps and Continuous Delivery (DEV211)AWS re:Invent 2016: Automated DevOps and Continuous Delivery (DEV211)
AWS re:Invent 2016: Automated DevOps and Continuous Delivery (DEV211)
 
CI/CD on AWS: Deploy Everything All the Time | AWS Public Sector Summit 2016
CI/CD on AWS: Deploy Everything All the Time | AWS Public Sector Summit 2016CI/CD on AWS: Deploy Everything All the Time | AWS Public Sector Summit 2016
CI/CD on AWS: Deploy Everything All the Time | AWS Public Sector Summit 2016
 
Effective Collaboration & Delivery with GitHub and AWS Code Deploy – GitHub
Effective Collaboration & Delivery with GitHub and AWS Code Deploy – GitHubEffective Collaboration & Delivery with GitHub and AWS Code Deploy – GitHub
Effective Collaboration & Delivery with GitHub and AWS Code Deploy – GitHub
 
Automating Security Event Reponse
Automating Security Event ReponseAutomating Security Event Reponse
Automating Security Event Reponse
 
Running Enterprise Workloads on AWS
Running Enterprise Workloads on AWSRunning Enterprise Workloads on AWS
Running Enterprise Workloads on AWS
 
AWS re:Invent 2016: DevOps on AWS: Accelerating Software Delivery with the AW...
AWS re:Invent 2016: DevOps on AWS: Accelerating Software Delivery with the AW...AWS re:Invent 2016: DevOps on AWS: Accelerating Software Delivery with the AW...
AWS re:Invent 2016: DevOps on AWS: Accelerating Software Delivery with the AW...
 
AWS re:Invent 2016: Deploying and Managing .NET Pipelines and Microsoft Workl...
AWS re:Invent 2016: Deploying and Managing .NET Pipelines and Microsoft Workl...AWS re:Invent 2016: Deploying and Managing .NET Pipelines and Microsoft Workl...
AWS re:Invent 2016: Deploying and Managing .NET Pipelines and Microsoft Workl...
 
DevOps for Business Transformation at Ellucian
DevOps for Business Transformation at EllucianDevOps for Business Transformation at Ellucian
DevOps for Business Transformation at Ellucian
 
AWS re:Invent 2016: Automating and Scaling Infrastructure Administration with...
AWS re:Invent 2016: Automating and Scaling Infrastructure Administration with...AWS re:Invent 2016: Automating and Scaling Infrastructure Administration with...
AWS re:Invent 2016: Automating and Scaling Infrastructure Administration with...
 
AWS re:Invent 2016: Using AWS Lambda to Build Control Systems for Your AWS In...
AWS re:Invent 2016: Using AWS Lambda to Build Control Systems for Your AWS In...AWS re:Invent 2016: Using AWS Lambda to Build Control Systems for Your AWS In...
AWS re:Invent 2016: Using AWS Lambda to Build Control Systems for Your AWS In...
 
Fundamentals of Cloud Computing & AWS
Fundamentals of Cloud Computing & AWSFundamentals of Cloud Computing & AWS
Fundamentals of Cloud Computing & AWS
 
Maximizing Business Value as You Migrate to AWS
Maximizing Business Value as You Migrate to AWSMaximizing Business Value as You Migrate to AWS
Maximizing Business Value as You Migrate to AWS
 
Creative content storage in the AWS Cloud
Creative content storage in the AWS CloudCreative content storage in the AWS Cloud
Creative content storage in the AWS Cloud
 
ANZ Dev Lounge Session - Feb 2017
ANZ Dev Lounge Session - Feb 2017ANZ Dev Lounge Session - Feb 2017
ANZ Dev Lounge Session - Feb 2017
 
AWS Cloud Controls for Security - Usman Shakeel
AWS Cloud Controls for Security  - Usman ShakeelAWS Cloud Controls for Security  - Usman Shakeel
AWS Cloud Controls for Security - Usman Shakeel
 

Similar a DevOps on AWS: Deep Dive on AWS Code Services and AWS CloudFormation

Track 4 Session 4_ MAD02 MAD 04 如何藉由 CICD 流程管理容器化和無伺服器應用
Track 4 Session 4_ MAD02 MAD 04 如何藉由 CICD 流程管理容器化和無伺服器應用Track 4 Session 4_ MAD02 MAD 04 如何藉由 CICD 流程管理容器化和無伺服器應用
Track 4 Session 4_ MAD02 MAD 04 如何藉由 CICD 流程管理容器化和無伺服器應用Amazon Web Services
 
Re:Invent announcements 2014
Re:Invent announcements 2014Re:Invent announcements 2014
Re:Invent announcements 2014Peter Susán
 
WIN401_Migrating Microsoft Applications to AWS
WIN401_Migrating Microsoft Applications to AWSWIN401_Migrating Microsoft Applications to AWS
WIN401_Migrating Microsoft Applications to AWSAmazon Web Services
 
AWS User Group UK re:Invent re:Cap
AWS User Group UK re:Invent re:CapAWS User Group UK re:Invent re:Cap
AWS User Group UK re:Invent re:CapIan Massingham
 
WIN204-Simplifying Microsoft Architectures with AWS Services
WIN204-Simplifying Microsoft Architectures with AWS ServicesWIN204-Simplifying Microsoft Architectures with AWS Services
WIN204-Simplifying Microsoft Architectures with AWS ServicesAmazon Web Services
 
ENT201 Simplifying Microsoft Architectures with AWS Services
ENT201 Simplifying Microsoft Architectures with AWS ServicesENT201 Simplifying Microsoft Architectures with AWS Services
ENT201 Simplifying Microsoft Architectures with AWS ServicesAmazon Web Services
 
Simplifying Microsoft Architectures with AWS - CMP214 - re:Invent 2017
Simplifying Microsoft Architectures with AWS - CMP214 - re:Invent 2017Simplifying Microsoft Architectures with AWS - CMP214 - re:Invent 2017
Simplifying Microsoft Architectures with AWS - CMP214 - re:Invent 2017Amazon Web Services
 
AWS User Group Hungary - re:Invent review
AWS User Group Hungary - re:Invent reviewAWS User Group Hungary - re:Invent review
AWS User Group Hungary - re:Invent reviewAttila Lengyel
 
Running Business-Critical Applications on the AWS Cloud
Running Business-Critical Applications on the AWS CloudRunning Business-Critical Applications on the AWS Cloud
Running Business-Critical Applications on the AWS CloudAmazon Web Services
 
Transitioning to the Next Generation Hybrid Cloud Operating Model- AWS Summit...
Transitioning to the Next Generation Hybrid Cloud Operating Model- AWS Summit...Transitioning to the Next Generation Hybrid Cloud Operating Model- AWS Summit...
Transitioning to the Next Generation Hybrid Cloud Operating Model- AWS Summit...Amazon Web Services
 
Running Microsoft Technologies on AWS - Pop-up Loft TLV 2017
Running Microsoft Technologies on AWS - Pop-up Loft TLV 2017Running Microsoft Technologies on AWS - Pop-up Loft TLV 2017
Running Microsoft Technologies on AWS - Pop-up Loft TLV 2017Amazon Web Services
 
AWS Enterprise Workloads on AWS IP Expo 2013
AWS Enterprise Workloads on AWS IP Expo 2013AWS Enterprise Workloads on AWS IP Expo 2013
AWS Enterprise Workloads on AWS IP Expo 2013Amazon Web Services
 
Microservices and serverless for MegaStartups - DLD TLV 2017
Microservices and serverless for MegaStartups - DLD TLV 2017Microservices and serverless for MegaStartups - DLD TLV 2017
Microservices and serverless for MegaStartups - DLD TLV 2017Boaz Ziniman
 
Axis Collage Kanpur: AWS Cloud Formation Presentation DevOps Feb_08_2022
Axis Collage Kanpur: AWS Cloud Formation Presentation DevOps  Feb_08_2022Axis Collage Kanpur: AWS Cloud Formation Presentation DevOps  Feb_08_2022
Axis Collage Kanpur: AWS Cloud Formation Presentation DevOps Feb_08_2022Varun Manik
 
AWS re:Invent 2016: Chalk Talk: Succeeding at Infrastructure-as-Code (GPSCT312)
AWS re:Invent 2016: Chalk Talk: Succeeding at Infrastructure-as-Code (GPSCT312)AWS re:Invent 2016: Chalk Talk: Succeeding at Infrastructure-as-Code (GPSCT312)
AWS re:Invent 2016: Chalk Talk: Succeeding at Infrastructure-as-Code (GPSCT312)Amazon Web Services
 
AWS Webcast - Build Agile Applications in AWS Cloud for Government
AWS Webcast - Build Agile Applications in AWS Cloud for GovernmentAWS Webcast - Build Agile Applications in AWS Cloud for Government
AWS Webcast - Build Agile Applications in AWS Cloud for GovernmentAmazon Web Services
 
Increase Speed and Agility with Amazon Web Services
Increase Speed and Agility with Amazon Web ServicesIncrease Speed and Agility with Amazon Web Services
Increase Speed and Agility with Amazon Web ServicesAmazon Web Services
 
Increase Speed and Agility with Amazon Web Services
Increase Speed and Agility with Amazon Web ServicesIncrease Speed and Agility with Amazon Web Services
Increase Speed and Agility with Amazon Web ServicesAmazon Web Services
 

Similar a DevOps on AWS: Deep Dive on AWS Code Services and AWS CloudFormation (20)

Track 4 Session 4_ MAD02 MAD 04 如何藉由 CICD 流程管理容器化和無伺服器應用
Track 4 Session 4_ MAD02 MAD 04 如何藉由 CICD 流程管理容器化和無伺服器應用Track 4 Session 4_ MAD02 MAD 04 如何藉由 CICD 流程管理容器化和無伺服器應用
Track 4 Session 4_ MAD02 MAD 04 如何藉由 CICD 流程管理容器化和無伺服器應用
 
Re:Invent announcements 2014
Re:Invent announcements 2014Re:Invent announcements 2014
Re:Invent announcements 2014
 
WIN401_Migrating Microsoft Applications to AWS
WIN401_Migrating Microsoft Applications to AWSWIN401_Migrating Microsoft Applications to AWS
WIN401_Migrating Microsoft Applications to AWS
 
AWS User Group UK re:Invent re:Cap
AWS User Group UK re:Invent re:CapAWS User Group UK re:Invent re:Cap
AWS User Group UK re:Invent re:Cap
 
WIN204-Simplifying Microsoft Architectures with AWS Services
WIN204-Simplifying Microsoft Architectures with AWS ServicesWIN204-Simplifying Microsoft Architectures with AWS Services
WIN204-Simplifying Microsoft Architectures with AWS Services
 
ENT201 Simplifying Microsoft Architectures with AWS Services
ENT201 Simplifying Microsoft Architectures with AWS ServicesENT201 Simplifying Microsoft Architectures with AWS Services
ENT201 Simplifying Microsoft Architectures with AWS Services
 
Simplifying Microsoft Architectures with AWS - CMP214 - re:Invent 2017
Simplifying Microsoft Architectures with AWS - CMP214 - re:Invent 2017Simplifying Microsoft Architectures with AWS - CMP214 - re:Invent 2017
Simplifying Microsoft Architectures with AWS - CMP214 - re:Invent 2017
 
AWS User Group Hungary - re:Invent review
AWS User Group Hungary - re:Invent reviewAWS User Group Hungary - re:Invent review
AWS User Group Hungary - re:Invent review
 
Introduction to DevOps on AWS
Introduction to DevOps on AWSIntroduction to DevOps on AWS
Introduction to DevOps on AWS
 
Running Business-Critical Applications on the AWS Cloud
Running Business-Critical Applications on the AWS CloudRunning Business-Critical Applications on the AWS Cloud
Running Business-Critical Applications on the AWS Cloud
 
Transitioning to the Next Generation Hybrid Cloud Operating Model- AWS Summit...
Transitioning to the Next Generation Hybrid Cloud Operating Model- AWS Summit...Transitioning to the Next Generation Hybrid Cloud Operating Model- AWS Summit...
Transitioning to the Next Generation Hybrid Cloud Operating Model- AWS Summit...
 
Running Microsoft Technologies on AWS - Pop-up Loft TLV 2017
Running Microsoft Technologies on AWS - Pop-up Loft TLV 2017Running Microsoft Technologies on AWS - Pop-up Loft TLV 2017
Running Microsoft Technologies on AWS - Pop-up Loft TLV 2017
 
AWS Enterprise Workloads on AWS IP Expo 2013
AWS Enterprise Workloads on AWS IP Expo 2013AWS Enterprise Workloads on AWS IP Expo 2013
AWS Enterprise Workloads on AWS IP Expo 2013
 
Microservices and serverless for MegaStartups - DLD TLV 2017
Microservices and serverless for MegaStartups - DLD TLV 2017Microservices and serverless for MegaStartups - DLD TLV 2017
Microservices and serverless for MegaStartups - DLD TLV 2017
 
Axis Collage Kanpur: AWS Cloud Formation Presentation DevOps Feb_08_2022
Axis Collage Kanpur: AWS Cloud Formation Presentation DevOps  Feb_08_2022Axis Collage Kanpur: AWS Cloud Formation Presentation DevOps  Feb_08_2022
Axis Collage Kanpur: AWS Cloud Formation Presentation DevOps Feb_08_2022
 
AWS re:Invent 2016: Chalk Talk: Succeeding at Infrastructure-as-Code (GPSCT312)
AWS re:Invent 2016: Chalk Talk: Succeeding at Infrastructure-as-Code (GPSCT312)AWS re:Invent 2016: Chalk Talk: Succeeding at Infrastructure-as-Code (GPSCT312)
AWS re:Invent 2016: Chalk Talk: Succeeding at Infrastructure-as-Code (GPSCT312)
 
AWS Webcast - Build Agile Applications in AWS Cloud for Government
AWS Webcast - Build Agile Applications in AWS Cloud for GovernmentAWS Webcast - Build Agile Applications in AWS Cloud for Government
AWS Webcast - Build Agile Applications in AWS Cloud for Government
 
AWS Migration Day - Windows Workloads
AWS Migration Day - Windows WorkloadsAWS Migration Day - Windows Workloads
AWS Migration Day - Windows Workloads
 
Increase Speed and Agility with Amazon Web Services
Increase Speed and Agility with Amazon Web ServicesIncrease Speed and Agility with Amazon Web Services
Increase Speed and Agility with Amazon Web Services
 
Increase Speed and Agility with Amazon Web Services
Increase Speed and Agility with Amazon Web ServicesIncrease Speed and Agility with Amazon Web Services
Increase Speed and Agility with Amazon Web Services
 

Más de Amazon Web Services

Come costruire servizi di Forecasting sfruttando algoritmi di ML e deep learn...
Come costruire servizi di Forecasting sfruttando algoritmi di ML e deep learn...Come costruire servizi di Forecasting sfruttando algoritmi di ML e deep learn...
Come costruire servizi di Forecasting sfruttando algoritmi di ML e deep learn...Amazon Web Services
 
Big Data per le Startup: come creare applicazioni Big Data in modalità Server...
Big Data per le Startup: come creare applicazioni Big Data in modalità Server...Big Data per le Startup: come creare applicazioni Big Data in modalità Server...
Big Data per le Startup: come creare applicazioni Big Data in modalità Server...Amazon Web Services
 
Esegui pod serverless con Amazon EKS e AWS Fargate
Esegui pod serverless con Amazon EKS e AWS FargateEsegui pod serverless con Amazon EKS e AWS Fargate
Esegui pod serverless con Amazon EKS e AWS FargateAmazon Web Services
 
Costruire Applicazioni Moderne con AWS
Costruire Applicazioni Moderne con AWSCostruire Applicazioni Moderne con AWS
Costruire Applicazioni Moderne con AWSAmazon Web Services
 
Come spendere fino al 90% in meno con i container e le istanze spot
Come spendere fino al 90% in meno con i container e le istanze spot Come spendere fino al 90% in meno con i container e le istanze spot
Come spendere fino al 90% in meno con i container e le istanze spot Amazon Web Services
 
Rendi unica l’offerta della tua startup sul mercato con i servizi Machine Lea...
Rendi unica l’offerta della tua startup sul mercato con i servizi Machine Lea...Rendi unica l’offerta della tua startup sul mercato con i servizi Machine Lea...
Rendi unica l’offerta della tua startup sul mercato con i servizi Machine Lea...Amazon Web Services
 
OpsWorks Configuration Management: automatizza la gestione e i deployment del...
OpsWorks Configuration Management: automatizza la gestione e i deployment del...OpsWorks Configuration Management: automatizza la gestione e i deployment del...
OpsWorks Configuration Management: automatizza la gestione e i deployment del...Amazon Web Services
 
Microsoft Active Directory su AWS per supportare i tuoi Windows Workloads
Microsoft Active Directory su AWS per supportare i tuoi Windows WorkloadsMicrosoft Active Directory su AWS per supportare i tuoi Windows Workloads
Microsoft Active Directory su AWS per supportare i tuoi Windows WorkloadsAmazon Web Services
 
Database Oracle e VMware Cloud on AWS i miti da sfatare
Database Oracle e VMware Cloud on AWS i miti da sfatareDatabase Oracle e VMware Cloud on AWS i miti da sfatare
Database Oracle e VMware Cloud on AWS i miti da sfatareAmazon Web Services
 
Crea la tua prima serverless ledger-based app con QLDB e NodeJS
Crea la tua prima serverless ledger-based app con QLDB e NodeJSCrea la tua prima serverless ledger-based app con QLDB e NodeJS
Crea la tua prima serverless ledger-based app con QLDB e NodeJSAmazon Web Services
 
API moderne real-time per applicazioni mobili e web
API moderne real-time per applicazioni mobili e webAPI moderne real-time per applicazioni mobili e web
API moderne real-time per applicazioni mobili e webAmazon Web Services
 
Database Oracle e VMware Cloud™ on AWS: i miti da sfatare
Database Oracle e VMware Cloud™ on AWS: i miti da sfatareDatabase Oracle e VMware Cloud™ on AWS: i miti da sfatare
Database Oracle e VMware Cloud™ on AWS: i miti da sfatareAmazon Web Services
 
Tools for building your MVP on AWS
Tools for building your MVP on AWSTools for building your MVP on AWS
Tools for building your MVP on AWSAmazon Web Services
 
How to Build a Winning Pitch Deck
How to Build a Winning Pitch DeckHow to Build a Winning Pitch Deck
How to Build a Winning Pitch DeckAmazon Web Services
 
Building a web application without servers
Building a web application without serversBuilding a web application without servers
Building a web application without serversAmazon Web Services
 
AWS_HK_StartupDay_Building Interactive websites while automating for efficien...
AWS_HK_StartupDay_Building Interactive websites while automating for efficien...AWS_HK_StartupDay_Building Interactive websites while automating for efficien...
AWS_HK_StartupDay_Building Interactive websites while automating for efficien...Amazon Web Services
 
Introduzione a Amazon Elastic Container Service
Introduzione a Amazon Elastic Container ServiceIntroduzione a Amazon Elastic Container Service
Introduzione a Amazon Elastic Container ServiceAmazon Web Services
 

Más de Amazon Web Services (20)

Come costruire servizi di Forecasting sfruttando algoritmi di ML e deep learn...
Come costruire servizi di Forecasting sfruttando algoritmi di ML e deep learn...Come costruire servizi di Forecasting sfruttando algoritmi di ML e deep learn...
Come costruire servizi di Forecasting sfruttando algoritmi di ML e deep learn...
 
Big Data per le Startup: come creare applicazioni Big Data in modalità Server...
Big Data per le Startup: come creare applicazioni Big Data in modalità Server...Big Data per le Startup: come creare applicazioni Big Data in modalità Server...
Big Data per le Startup: come creare applicazioni Big Data in modalità Server...
 
Esegui pod serverless con Amazon EKS e AWS Fargate
Esegui pod serverless con Amazon EKS e AWS FargateEsegui pod serverless con Amazon EKS e AWS Fargate
Esegui pod serverless con Amazon EKS e AWS Fargate
 
Costruire Applicazioni Moderne con AWS
Costruire Applicazioni Moderne con AWSCostruire Applicazioni Moderne con AWS
Costruire Applicazioni Moderne con AWS
 
Come spendere fino al 90% in meno con i container e le istanze spot
Come spendere fino al 90% in meno con i container e le istanze spot Come spendere fino al 90% in meno con i container e le istanze spot
Come spendere fino al 90% in meno con i container e le istanze spot
 
Open banking as a service
Open banking as a serviceOpen banking as a service
Open banking as a service
 
Rendi unica l’offerta della tua startup sul mercato con i servizi Machine Lea...
Rendi unica l’offerta della tua startup sul mercato con i servizi Machine Lea...Rendi unica l’offerta della tua startup sul mercato con i servizi Machine Lea...
Rendi unica l’offerta della tua startup sul mercato con i servizi Machine Lea...
 
OpsWorks Configuration Management: automatizza la gestione e i deployment del...
OpsWorks Configuration Management: automatizza la gestione e i deployment del...OpsWorks Configuration Management: automatizza la gestione e i deployment del...
OpsWorks Configuration Management: automatizza la gestione e i deployment del...
 
Microsoft Active Directory su AWS per supportare i tuoi Windows Workloads
Microsoft Active Directory su AWS per supportare i tuoi Windows WorkloadsMicrosoft Active Directory su AWS per supportare i tuoi Windows Workloads
Microsoft Active Directory su AWS per supportare i tuoi Windows Workloads
 
Computer Vision con AWS
Computer Vision con AWSComputer Vision con AWS
Computer Vision con AWS
 
Database Oracle e VMware Cloud on AWS i miti da sfatare
Database Oracle e VMware Cloud on AWS i miti da sfatareDatabase Oracle e VMware Cloud on AWS i miti da sfatare
Database Oracle e VMware Cloud on AWS i miti da sfatare
 
Crea la tua prima serverless ledger-based app con QLDB e NodeJS
Crea la tua prima serverless ledger-based app con QLDB e NodeJSCrea la tua prima serverless ledger-based app con QLDB e NodeJS
Crea la tua prima serverless ledger-based app con QLDB e NodeJS
 
API moderne real-time per applicazioni mobili e web
API moderne real-time per applicazioni mobili e webAPI moderne real-time per applicazioni mobili e web
API moderne real-time per applicazioni mobili e web
 
Database Oracle e VMware Cloud™ on AWS: i miti da sfatare
Database Oracle e VMware Cloud™ on AWS: i miti da sfatareDatabase Oracle e VMware Cloud™ on AWS: i miti da sfatare
Database Oracle e VMware Cloud™ on AWS: i miti da sfatare
 
Tools for building your MVP on AWS
Tools for building your MVP on AWSTools for building your MVP on AWS
Tools for building your MVP on AWS
 
How to Build a Winning Pitch Deck
How to Build a Winning Pitch DeckHow to Build a Winning Pitch Deck
How to Build a Winning Pitch Deck
 
Building a web application without servers
Building a web application without serversBuilding a web application without servers
Building a web application without servers
 
Fundraising Essentials
Fundraising EssentialsFundraising Essentials
Fundraising Essentials
 
AWS_HK_StartupDay_Building Interactive websites while automating for efficien...
AWS_HK_StartupDay_Building Interactive websites while automating for efficien...AWS_HK_StartupDay_Building Interactive websites while automating for efficien...
AWS_HK_StartupDay_Building Interactive websites while automating for efficien...
 
Introduzione a Amazon Elastic Container Service
Introduzione a Amazon Elastic Container ServiceIntroduzione a Amazon Elastic Container Service
Introduzione a Amazon Elastic Container Service
 

DevOps on AWS: Deep Dive on AWS Code Services and AWS CloudFormation

  • 1. CLOUD SERVICE EXPERT Nextlink Company Profile Nextlink Technology Co., Ltd.
  • 2. LINK YOU TO THE CLOUD Introduction Nextlink Founded in 2006 | Hong Kong . Taiwan . Thailand is an internationally renowned Asia-Pacific agent, voted one of the most promising AWS partner by CIO Solution Magazine. We are an expert in cloud services: specialized, speedy, and with an eye and heart for detail. We actively integrate our own cloud, ICT, cost optimization, hosting, and migration services, with the best international resources to develop customized solutions, such as global CDN networks, video streaming, and Big Data.
  • 3. LINK YOU TO THE CLOUD Our Services www.nextlink.com.hkISO 9001 | ISO 27001 Cloud Management • Infrastructure • Application • Information Security • Migration Strategy • Architecture • Operation • 24/7 Monitoring • Emergency Notification Cloud Migration Smart IDC Smart Monitoring Support Center Customized Service • Multi-loop Backup Network • Exclusive Hosting Services • Help Desk Technical Support • Customized Training • Customized Project, Solution Planning, Deployment and Execution.
  • 4. LINK YOU TO THE CLOUD Products and Solutions www.nextlink.com.hkISO 9001 | ISO 27001 Big DataSmart Monitoring IoTSecurity Streaming X
  • 5. CLOUD SERVICE EXPERT Deep Dive on AWS Code Services and AWS CloudFormation DevOps on AWS
  • 6. LINK YOU TO THE CLOUDAWS CodePipeline Integrations Depl oy AWS CodeBuild AWS CodeDeploy AWS CodeCommit Amazon S3 AWS Elastic Beanstalk AWS CloudFormation AWS OpsWorks Third-party tooling AWS CodePipeline www.nextlink.com.hkISO 9001 | ISO 27001 Source Build Test Deploy
  • 7. LINK YOU TO THE CLOUDAWS Infrastructure Deployment AWS OpsWorks AWS CloudFormation AWS Elastic Beanstalk DevOps framework for application lifecycle management and automation Templates to deploy & update infrastructure as code Automated resource management – web apps made easy DIY On Demand DIY, on demand resources: EC2, S3, custom AMI’s, etc. Convenience Control
  • 8. LINK YOU TO THE CLOUDInfrastructure as Code www.nextlink.com.hkISO 9001 | ISO 27001 A practice in which traditional infrastructure management techniques are supplemented by or replaced with code- based tools and software development techniques.
  • 9. LINK YOU TO THE CLOUDInfrastructure as Code Workflow It’s all software! Text Editor Git/SVN/Perforce Review Tools Syntax Validation Tools AWS Services Code Version Control Code Review Integrate Deploy www.nextlink.com.hkISO 9001 | ISO 27001
  • 10. AWS Resources LINK YOU TO THE CLOUDInfrastructure as Code Workflow Operating System and Host Configuration Application Configuration www.nextlink.com.hkISO 9001 | ISO 27001
  • 11. LINK YOU TO THE CLOUDInfrastructure as Code Workflow AWS Resources Operating System and Host Configuration Application Configuration AWS CloudFormation AWS CloudFormation AWS CloudFormation Amazon Virtual Private Cloud (Amazon VPC) Amazon Elastic Compute Cloud (Amazon EC2) AWS Identity and Access Management (IAM) Amazon Relational Database Service (Amazon RDS) Amazon Simple Storage Service (Amazon S3) AWS CodePipeline Microsoft Windows Registry Linux networking OpenSSH LDAP Active Directory Domain registration Centralized logging System metrics Deployment agents Host monitoring Application dependencies Application configuration Service registration Management scripts Database credentials
  • 12. LINK YOU TO THE CLOUDApplication Deployment Approaches • Deploy in place • Rolling updates • Blue-Green Deployment (aka Red-Black Deployment) • Multiple environments deployment • Support A/B testing • “ Rolling DNS” • Blue-Green Deployment (with ELB and ASG) • Alternate auto scaling group • Avoid messing with DNS www.nextlink.com.hkISO 9001 | ISO 27001
  • 13. LINK YOU TO THE CLOUDDeploy in place – Rolling update www.nextlink.com.hkISO 9001 | ISO 27001
  • 14. LINK YOU TO THE CLOUDDeploy in place – Rolling update www.nextlink.com.hkISO 9001 | ISO 27001
  • 15. LINK YOU TO THE CLOUDDeploy in place – Rolling update www.nextlink.com.hkISO 9001 | ISO 27001
  • 16. LINK YOU TO THE CLOUDDeploy in place – Rolling update www.nextlink.com.hkISO 9001 | ISO 27001
  • 17. LINK YOU TO THE CLOUDDeploy in place – Rolling update www.nextlink.com.hkISO 9001 | ISO 27001
  • 18. LINK YOU TO THE CLOUDDeploy in place – Rolling update www.nextlink.com.hkISO 9001 | ISO 27001
  • 19. LINK YOU TO THE CLOUDBlue-Green deployment www.nextlink.com.hkISO 9001 | ISO 27001 Amazon Route 53 EC2 Instances ELB 100% DynamoDB MySQL RDS Instance ElastiCache Cache Node
  • 20. LINK YOU TO THE CLOUDBlue-Green deployment www.nextlink.com.hkISO 9001 | ISO 27001 Amazon Route 53 EC2 Instances ELB EC2 Instances ELB 100% UAT DynamoDB MySQL RDS Instance ElastiCache Cache Node
  • 21. LINK YOU TO THE CLOUDBlue-Green deployment www.nextlink.com.hkISO 9001 | ISO 27001 Amazon Route 53 EC2 Instances ELB EC2 Instances ELB 90% 10% DynamoDB MySQL RDS Instance ElastiCache Cache Node
  • 22. LINK YOU TO THE CLOUDBlue-Green deployment www.nextlink.com.hkISO 9001 | ISO 27001 Amazon Route 53 EC2 Instances ELB EC2 Instances ELB 50% 50% DynamoDB MySQL RDS Instance ElastiCache Cache Node
  • 23. LINK YOU TO THE CLOUDBlue-Green deployment www.nextlink.com.hkISO 9001 | ISO 27001 Amazon Route 53 EC2 Instances ELB EC2 Instances ELB 0% 100% DynamoDB MySQL RDS Instance ElastiCache Cache Node
  • 24. LINK YOU TO THE CLOUDBlue-Green deployment www.nextlink.com.hkISO 9001 | ISO 27001 Amazon Route 53 EC2 Instances ELB EC2 Instances ELB 0% 100% DynamoDB MySQL RDS Instance ElastiCache Cache Node
  • 25. LINK YOU TO THE CLOUDBlue-Green deployment with ELB www.nextlink.com.hkISO 9001 | ISO 27001
  • 26. LINK YOU TO THE CLOUDCloudFormation www.nextlink.com.hkISO 9001 | ISO 27001 • Create templates of the infrastructure and applications you want to run on AWS. • Have CloudFormation automatically provision the required AWS resources and their relationships from the templates. • Easily version, replicate, or update the infrastructure and applications using the templates. • Integrates with other development, CI/CD, and management tools.
  • 27. LINK YOU TO THE CLOUDBenefits www.nextlink.com.hkISO 9001 | ISO 27001 Templated resource provisioning Infrastructure as code Declarative and flexible Easy to use
  • 28. LINK YOU TO THE CLOUDTemplated resource provisioning www.nextlink.com.hkISO 9001 | ISO 27001 • Create templates to describe the AWS resources used to run your application • Provision identical copies of a stack
  • 29. LINK YOU TO THE CLOUDInfrastructure as code www.nextlink.com.hkISO 9001 | ISO 27001 • Templates can be stored in a source control system • Track all changes made to your infrastructure stack • Modify and update resources in a controlled and predictable way
  • 30. LINK YOU TO THE CLOUDDeclarative and flexible www.nextlink.com.hkISO 9001 | ISO 27001 • Just choose the resources and configurations you need • Customize your template through parameters
  • 31. LINK YOU TO THE CLOUDEasy to use www.nextlink.com.hkISO 9001 | ISO 27001 • Access through console, CLI, or SDKs • Start with one of the many sample templates • Integrate with your development and management tools
  • 32. LINK YOU TO THE CLOUDCommon use cases www.nextlink.com.hkISO 9001 | ISO 27001 Stack replication Blue/green deployments Infrastructure as code Infrastructure scale out
  • 33. LINK YOU TO THE CLOUDPricing www.nextlink.com.hkISO 9001 | ISO 27001 • There is no additional charge for CloudFormation • Customers pay only for the AWS resources (e.g., EC2 instances, EBS volumes) created using CloudFormation
  • 34. LINK YOU TO THE CLOUDUse a wide range of AWS services and more …
  • 35. LINK YOU TO THE CLOUDCloudFormation Concept & Terminology
  • 36. LINK YOU TO THE CLOUDCloudFormation template: JSON Plain text Perfect for version control Can be validated
  • 37. LINK YOU TO THE CLOUDCloudFormation template: JSON
  • 38. LINK YOU TO THE CLOUDCloudFormation template: JSON
  • 39. LINK YOU TO THE CLOUDTemplate components Headers Description of what your stack does, contains, and so on Parameters Provision time values that add structured flexibility and customization Mappings Predefined conditional case statements Conditionals Conditional values set through evaluations of passed references Resources AWS resource definitions Outputs Resulting attributes of stack resource creation
  • 40. LINK YOU TO THE CLOUD“How do I plan my stacks?”
  • 41. LINK YOU TO THE CLOUDHow to get start? Start with existing Template
  • 42. LINK YOU TO THE CLOUDAWS CloudFormation Designer
  • 43. LINK YOU TO THE CLOUDCloudFormation Designer toolbar Toolbar Navigation Open: Local files/S3/stack Save: Local files/launch stack Validation: AWS resource schema Refresh: Synchronize JSON text changes
  • 44. LINK YOU TO THE CLOUDCloudFormation Designer Resources All supported resources Organized by service Drag and drop onto canvas Color-coded icons
  • 45. LINK YOU TO THE CLOUDCloudFormation Designer canvas Container Resources e.g. EC2 VPCs, subnets Connections between resources e.g. Ref, DependsOn, GetAtt Contextual Resource menu Code/Clone/Delete/Docs
  • 46. LINK YOU TO THE CLOUDCloudFormation Designer JSON Editor Ctrl+Space : Within the Properties key of a resource, lists all the available properties for the resource Ctrl+F : Search for a value in the JSON editor. Ctrl+ : Formats the text with proper indentation and new lines Ctrl+Shift+ : Removes all white space
  • 47. LINK YOU TO THE CLOUDAWS CloudFormer
  • 48. LINK YOU TO THE CLOUDCreate Stack
  • 49. LINK YOU TO THE CLOUDOperate Stack
  • 50. LINK YOU TO THE CLOUDCloudFormation Change Sets Preview the set of actions CloudFormation will take on your behalf before you create or update stacks Change Sets show you what resources will be created, updated or replaced. This ensures that only expected operations are executed Original Stack 1.Create change set Change set 2.View change set Change set 3.Execute Change Set AWS Cloud Formation updates your stack
  • 51. LINK YOU TO THE CLOUDDebug Stack
  • 52. LINK YOU TO THE CLOUDAWS CloudFormation: Application Stack Example Template File Defining Stack Git Subversion Mercurial Dev Test Prod The entire application can be represented in an AWS CloudFormation template. Use the version control system of your choice to store and track changes to this template Build out multiple environments, such as for Development, Test, and Production using the template
  • 53. LINK YOU TO THE CLOUDBootstrapping applications and handling updates Option 1 Use Amazon EC2 UserData, which is available as a property of AWS::EC2::Instance resources
  • 54. LINK YOU TO THE CLOUDBootstrapping applications and handling updates Option 2 CloudFormation provides helper scripts for deployment within your EC2 instances Metadata key— AWS::CloudFormation::Init The cfn-init helper script reads this metadata key and installs the packages listed in this key (for example, httpd, mysql, and php); cfn- init also retrieves and expands files listed as sources
  • 55. LINK YOU TO THE CLOUDBootstrapping applications and handling updates Option 2 Install packages with the native package management tool:
  • 56. LINK YOU TO THE CLOUDBest practices Reference: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/best-practices.html Planning and organizing • Organize your stacks by lifecycle and ownership • Reuse templates to replicate stacks in multiple environments • Verify quotas for all resource types • Use nested stacks to reuse common template patterns Creating templates • Do not embed credentials in your templates • Use AWS-specific parameter types • Use parameter constraints • Validate templates before using them
  • 57. LINK YOU TO THE CLOUDBest practices Reference: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/best-practices.html Managing stacks • Manage all stack resources through CloudFormation • Create change sets before updating your stacks • Use stack policies • Use CloudTrail to log CloudFormation calls • Use code reviews and revision controls to manage your templates
  • 58. LINK YOU TO THE CLOUDBest practices { "Effect":"Allow”, "Action":[ "cloudformation:CreateStack", "cloudformation:UpdateStack” ], "Condition":{ "ForAllValues:StringLike":{ "cloudformation:TemplateUrl": ["https://.amazonaws.com/TestBucket/*"] } } } { "Effect":"Allow”, "Action":[ "cloudformation:UpdateStack” ], "Condition":{ "ForAllValues:StringEquals":{ "cloudformation:StackPolicyUrl": ["https://.amazonaws.com/TestBucket/Foo.json "] } } } Only allow specific templates and stack policies
  • 59. LINK YOU TO THE CLOUDBest practices { "Effect":"Allow”, "Action":[ "cloudformation:CreateStack” ], "Condition":{ "ForAllValues:StringEquals":{ "cloudformation:ResourceType": [”AWS::EC2::Instance”…] } } } { "Effect":"Allow”, "Action":[ "cloudformation:CreateStack” ] }, { "Effect":”Deny”, "Action":[ "cloudformation:CreateStack” ] "Condition":{ "ForAnyValue:StringLike":{ "cloudformation:ResourceType": [”AWS::IAM::*"] } } Only allow specific resource types