Development Notes
  • Introduction
  • Programming Langauges
    • Java
      • Cache
      • Java Fundamentals
      • Multithreading & Concurrency
      • Spring Boot
        • Spring Security
        • Development tips
      • ORM
        • Mybatis
      • Implementation & Testing
    • Node.js
      • Asynchronous Execution
      • Node.js Notes
    • Python
      • Memo
  • Data Structure & Algorithm
  • Database
  • Design Pattern
  • AWS Notes
    • Services
      • API Gateway
      • CloudHSM
      • Compute & Load Balancing
        • Auto Scaling Group
        • EC2
        • ECS
        • ELB
        • Lambda
      • Data Engineering
        • Athena
        • Batch
        • EMR
        • IoT
        • Kinesis
        • Video Streaming
        • Quicksight
      • Deployment
        • CloudFormation
        • Code Deploy
        • Elastic Beanstalk
        • OpsWorks
        • SAM
        • SSM
      • ElasticSearch
      • Identity & Federation
        • Directory Service
        • IAM
        • Organizations
        • Resource Access Manager (RAM)
        • SSO
        • STS
      • KMS
      • Management Tools
        • Catalog
        • CloudTrail
        • CloudWatch
        • Config
        • Cost Allocation Tags
        • GuardDuty
        • Savings Plans
        • Trusted Advisor
        • X-Ray
      • Migration
        • Cloud Migration: The 6R
        • Disaster Recovery
        • DMS
        • VM Migrations
      • Networking
        • ACM
        • CloudFront
        • Direct Connect
        • EIP & ENI
        • Network Security
        • PrivateLink
        • Route53
        • VPC
        • VPN
      • Service Commnucation
        • Amazon MQ
        • SNS
        • SQS
        • Step Functions
        • SWF
      • Storage
        • Aurora
        • DynamoDB
        • EBS
        • EFS
        • ElastiCache
        • RDS
        • Redshift
        • S3
        • Storage Gateway
      • Other Services
        • Alexa for Business, Lex, Connect
        • AppStream 2.0
        • CloudSearch
        • Comprehend
        • Data Tools
        • Elastic Transcoder
        • Mechanical Turk
        • Rekognition
        • WorkDocs
        • WorkSpaces
    • Well Architect Framework
      • Security
      • Reliability
      • Performance Effeciency
      • Cost Optimization
      • Operational Excellence
    • Labs
      • Webserver Implementation
      • ELB Implementation
      • Auto-scaling Implementation
      • A 3-tier Architecture In VPC
  • Architecture
    • Security
  • Spark
    • Memo
  • Conference Notes
    • Notes of JCConf 2017
  • AI Notes
Powered by GitBook
On this page

Was this helpful?

  1. AWS Notes
  2. Services
  3. Deployment

Code Deploy

Introduction

  • A deployment service that automates application deployments to

    • EC2 instances

    • on-premises instances

    • Lambda

    • ECS

  • Does not launch AWS resources automatically like CloudFormation, Opsworks, and Elastic Beanstalk.

Feature

  • Deploy to EC2

    • Define how to deploy the application using appspec.yml + strategy

    • Will do in-place update (take off partial v1, provision v2, replace all in the end) to your fleet of EC2 instances

    • Can use hooks to verify the deployment after each deployment phase

  • CodeDeploy to ASG

    • In-place updates

      • Updates current existing EC2 instances

      • Instances newly created by an ASG will also get automated deployments

    • Blue / Green Deployment

      • A new auto-scaling group is created (settings are copied)

      • Choose how long to keep the old instances

      • Must be using an ELB

  • CodeDeploy to Lambda

    • Supports Blue / Green Deployments

      • Canary

      • Linear

      • All-at-once

    • Traffic Shifting with Lambda Alias

    • Pre / Post Traffic Hooks

      • Pre Traffic Hook: validate the v2

      • Post Traffic Hook: rollback to v1 / clean up

    • Easy & automated rollback using CloudWatch Alarms

    • SAM framework natively uses CodeDeploy

  • CodeDeploy to ECS

    • Supports Blue / Green Deployments for ECS / ECS Fargate

      • Canary

      • Linear

      • All-at-once

    • Setup is done within the ECS Service definition

    • A new task set is created, and traffic is re-routed to the new task test.

    • Then if everything is stable for X minutes, the old task set is terminated.

PreviousCloudFormationNextElastic Beanstalk

Last updated 4 years ago

Was this helpful?