aws tools cicd
TRANSCRIPT
© Minjar Cloud Solutions 2016
CI/CD on AWS J A I P R A K A S H D A V E
S o l u t i o n A r c h i t e c t a t M i n j a r
© Minjar Cloud Solutions 2016
AGENDA
Introduction to Minjar Use Case Code Commit Basics & Pros and Cons Code Pipeline Basics & Pros and Cons Code Build Basics & Pros and Cons Code Deploy Basics & Pros and Cons Demo
© Minjar Cloud Solutions 2016
INTRODUCTION TO MINJAR As a “Born in the Cloud” company, Minjar understands that
deploying and operating cloud workloads need a completely different approach and consequently a different solution framework. Customers move to cloud to ensure they achieve increased agility and enhanced performance at a reduced Total Cost of Ownership. This expectation is not just from the cloud platform but also from all services delivered leveraging the platform. Based on our industry leading experience we have built the most comprehensive cloud managed service offerings offered on the AWS platform. Our cloud managed service offering leverages Minjar’s own intelligent platform - Botmetric to guarantee security, transparency & responsiveness. And delivers end to end cloud service assurance based on an innovative Minjar Software Defined Operations FrameworkTM
© Minjar Cloud Solutions 2016
USE CASE
As demo we will be pushing our code to aws code commit and will deploy our code to EC2 server using code pipeline, code build and code deploy.
© Minjar Cloud Solutions 2016
CODE COMMIT AWS CodeCommit is a secure, highly scalable, managed
source control service that hosts private Git repositories You can use your current git tools for using it Available in only 4 Regions (EU (Ireland), US East (N.
Virginia), US East (Ohio), US West (Oregon)) Data redundancy in multiple AZ No repo size limit. User management is thorough IAM only Pricing : $1 per additional active user per month after 5 active
user , $0.06 per GB-month after 50 GB and $0.001 per Git request after 2000 request per user
Related tools : Github, Bitbucket
© Minjar Cloud Solutions 2016
Pros Easy to integrate with AWS tools. Fully managed. Highly Available. Security Store anything ie (code, binary) Data at rest encrypted Supports event based action.
Cons Very difficult to share with
different accounts Can not give access to only one
branch which is possible in normal git.
Only available in 4 regions.
© Minjar Cloud Solutions 2016
CODE PIPELINE AWS CodePipeline is a continuous integration and continuous
delivery service for fast and reliable application and infrastructure updates.
Have inbuild integration with multiple third party tools like blazemeter , Jenkins etc .
Available in only 9 Regions (EU (Ireland),Asia Pacific (Singapore), Asia Pacific (Sydney), EU (Frankfurt), Asia Pacific (Tokyo), US East (N. Virginia), US East (Ohio), South America (São Paulo), US West (Oregon))
Fully managed service Related tools : Bamboo Pricing : 1$ per month for each active Pipeline.
© Minjar Cloud Solutions 2016
Deploy
Beanstalk Code Deploy Cloud formation
BuildJenkins Code Build
SourceGithub Code Commit S3
© Minjar Cloud Solutions 2016
Pros Get started fast Rapid delivery Pre-built and custom integrations
like Blazemeter, Jenkins etc
Cons Limited tools for integration. Not available in all regions.
© Minjar Cloud Solutions 2016
CODE BUILD
AWS CodeBuild compiles your source code, runs unit tests, and produces artifacts that are ready to deploy.
Available in only 4 Regions (EU (Ireland), US East (N. Virginia), US East (Ohio), US West (Oregon))
Fully managed service Related tools : Bamboo, Jenkins Pricing : free tier includes 100 build minutes of
build.general1.small per month. https://aws.amazon.com/codebuild/pricing/
© Minjar Cloud Solutions 2016
BUILD SPEC FILE version: 0.1 environment_variables: plaintext: key: "value" phases: install: commands: - command pre_build: commands: - command build: commands: - command post_build: commands: - command artifacts: files: - location discard-paths: yes
© Minjar Cloud Solutions 2016
Pros Fully managed On Demand Out of the box support for popular
programming language
Cons Only Ubuntu is supported for
Operating system. Not available in all regions. PHP is not supported for code
build.
© Minjar Cloud Solutions 2016
CODE DEPLOY
AWS CodeDeploy coordinates application deployments to Amazon EC2 instances, on-premises instances, or both.
Available in all region. Fully managed service Works on agent bases. Related tools : Chef Automate, puppet. Pricing : free on AWS
© Minjar Cloud Solutions 2016
APP SPEC FILE
version: 0.0 os: operating-system-name files: source-destination-files-mappings permissions: permissions-specifications hooks: deployment-lifecycle-event-mappings
© Minjar Cloud Solutions 2016
Pros Automated deployments Minimize downtime Stop and roll back Centralized control Free to use on AWS. Can be used for hybrid cloud
Cons Code deploy agent only work if
role is assigned to the EC2. .
Demo
© Minjar Cloud Solutions 2016
Thank You