CodeDeploy Flashcards
This is an automated deploy service which allows you to deploy you app code automatically to EC2 instances, on prem systems, and LMabda functions.
code deploy
this service allows you to quickly release new features, avoid downtime during app deployments and avoid the risks associated with manual processes.
code deploy
T or F
code deploy auto scales with your infra and integrates with various CI/CD tools ie: jenkins, github, atlassian, codepipeline, as well as config management tools like ansible, chef, and puppet.
true
What are the 2 appraches available for code deploy?
in-place and blue-green
Which deploymetn type is this?
- the app is stopped on each instance and the latest revision installed
- the isntance is out of service during this time and yoru capacity will be reduced
- if the isntances are behind a load balancer, you can configure the LB to stop sending requests to the instances which are being upgraded.
in-place deployment
which deployment is this?
- also known as rolling dpeloyment
- it can only be used for ec2 and on-prem systems - it is not supported for lambda.
- if you need to roll back your changes, the previous version of the app will need to be redeployed.
in-place deployments
blue/green deployment -
new isntaces are provisioned and the latest revision is installed on teh new instances. ____ represents the active deployment, _____ is the new release
blue/green
which deployment is this?
BG or in place?
the new instances are registered with an ELB, traffic is then routed to the new isntances and the original instances are eventually terminated.
Blue green
which deployment is this?
BG or in place?
advantages of this deployment are that hte new instan ces can be created ahead of time and the code released to prod by simply switching all traffic ot the new servers.
blug green
which deployment is this?
BG or in place?
switching back to the original environment is faster and more reliable and is just a case of routing the traffic back to teh original servers (as logn as you haven’t already termianted them)
blue green
Match the definition to the terminology:
- A set of EC2 instances or lambda cuntion to which a new revision of the software is to be deployed.
- the process and components used to apply new revision
- a set of deployment rules as well as success/failure conditions used during a deployment
- defines the deployment actions you want AWS code deploy to execute.
- everything needed to deploy the new version: appspec file, app files, executables, config files
- unique identifier for the app you want to deploy. To ensure the correct combination of revision, deployment configuration and deployment group are referenced during a deployment.
- Revision
- Deployment
- Application
- Deployment Group
- AppSpec File
- Deployment Configuration
- deployment group
- deployment
- deployment configuration
- appspec/File
- revision
- application
capacity is reduced during the deplloyment
in place or blue green?
in place
easy switch between old and new
in place or blue green
bllue green
lambda is not supported
in place or blue green
in place
great when deploying the first time
in place or blue green
in place
no capacity reduction
in place or blue green
BG
green instances can be created ahead of time
in place or blue green
BG
you pay for 2 env until you temrinate the old servers
in place or blue green
BG
rolling back involves a re-deploy
in place or blue green
in place
_____ file
defines the parameters to be used during codedeploy deployment
appspec
the appspect file supports ____ only when deploying for ec2 or on prem systems
YAML
when deploying lambdas, the appspec file supports ___ and ____. file structure depends on whether you are deplying to lambda or ec2.
json or yaml
appspec.yml should be saved at the ____ of your revision
root
regarding appspec file lifecycle event ____ have a very specific run order
hooks
lifecycle event hooks are run in a specific order known as the ____ order
run
run order for an in place deployment
(put it in order)
application start
application stop
after install
validate service
before install
install
download bundle
application stop
download bundle
before install
install
after install
application start
validate service