CodeDeploy Flashcards
What is CodeDeploy?
Automated deployment for EC2, on-premises & Lambda.
Also for ECS?
What CI/CD property does CodeDeploy fulfill?
Continuous Delivery
Approaches CodeDeploy Deploys
In Place
Blue/Green
Describe In Place Deploymnet
Rolling update
Great for first time deployment
Only EC2 and on-premise servers are supported
Takes 1 instance out of service.
Not a quick fix for rollback (have to redeploy)
Describe Blue/Green Deployment
Blue = active Green = new release
roll backs are easy
Pay for 2 env till terminate old servers
Lambda, ECS, or EC2
What file do you use to configure CodeDeploy
AppSpecFile
Language AppSpecFile must be for each service
EC2 and on-premise = YAML only
Lambda = YAML and JSON
What are the contents of the AppSpec file
Version (future use)
OS
Files
Hooks
LifeCycle Hooks for deregistering instances
BeforeBlockTraffic->BlockTraffic->AfterBlockTraffic
LifeCycle hooks for deployment
ApplicationStop -> DownloadBundle->BeforeInstall -> Install -> AfterInstall -> ApplicationStart->ValidateService
LifeCycle hooks to reregister instances with load balancer
BeforeAllowTraffic->AllowTraffic->AfterAllowTraffic
When deploying to Lambda what 2 configurations can you choose for shifting traffic from original Lambda function to new in Blue/Green Deployment
Canary
Linear
All at once
What is Canary traffic shifting
Specify percentage of traffic shifted to updated Lamba function and an interval in min before shifted to next increment
What is Linear Traffic shifting
Shift in equal increments with equal number of minutes between increment
What are ways to shift traffic with ECS Compute Platform?
Canary
Linear
All-at-once