CodePipeline Flashcards
This service is a fully managed, continuous integration and continuous delivery service
code pipeline
____ ____ can orchstrate the build, test, and even deployment of your app every time ther eis a chnage to your code - all based on a user defined sw release process.
code pipeline
T oR F
Traditional manual approaches to code delivery can slow and be prone to errors, whereas an automated process allows developers to frequently release new features and bu fixes in a fast and reliable way.
True
____ ____ allows you to model your release process as a workflow or pipeline made of different tasks, such as the simple workflow presented below:
code update–>build–>test–>deploy
code pipeline
in this service, you define what happens and where for each of the different stages of the workflow and this can be modelled using the ____ _____ GUI or CLI.
code pipeline
____ ____ integrates with code commit, code build, code deplopy, lambda, EB, CF, ECS, as wella s 3rd oarth tools like github and jenkins.
code pipeline
every code cahnge psuhed to your code repo auto enters the workflow and triggers the set of actions defined for each stage of teh _____
pipeline.
The ____ auto stops if one of the stages fails. This means that bugs are caught before the code is deployed while they are still easy to fix.
code update–>build–>test–>deploy
pipeline
The ____ _____ is used to define the parameters that will be used for a codedeploy deployment. The file structure depends on whether you are deploying to Lambda or Ec2/on prem.
appspec file
for ____ deploy, the appspec file may be written in YAML or JSON and contains the following fields:
_____: reserved for future use - currently the only allowed value is 0.0
_____: the name and properties of the Lambda function to deploy
_____: specifies Lambda functions to run at set points in teh deployment lifecycle to validate the deployment ie: validation tests to run before allowing traffic to be sent to your newly deployed instanaces.
- resources
- lambda
- hooks
- version
- 6.
- Lambda
- version
- resources
- hooks
The follwing hooks rae availablke for use:
_____:used to specify the tasks or functions you want ot run before traffic is routed to the newly deployed Lambda function. (ie: test to validate that the function has been deployed correctly)
_____: Used to specify the tasks of functions you want to run after the traffic has been routed to the newly deployed Lambdas function. (Ie: test to validate that the function is accepting traffic correctly and behaving as expected)
AfterAllowTraffic
BeforeAllowTraffic
NeverAllowTraffic
TrafficSucks
BeforeAllowTraffic
AfterAllowTraffic
For ec2 anD on prem deployments, the appspec.yml muyst be placed in teh ___of the directory of your revision - this is the directory containing your app source code, otherwise the deployment will fail.
root
put the typical setup in order
/config
/source
appspec.yml
/scripts
mywebapp folder
mywebapp folder
appspec.yml
/scripts
/config
/source
____: Run tasks on instances before they are deregistered from ALB
____: deregister intances from ALB
____: Run tasks on instances after they are deregistered from a LB.
BlockTraffic
AfterBlockTraffic
BeforeBlockTraffic
BeforeBlockTraffic
BlockTraffic
AfterBlockTraffic
Name the terminology for each definition and put them in the correct run order for hooks
____:restarts any services that were stopped during Application Stop
_____: gracefullly stop the app in prep for deploying the new version
_____: register instances with a LB
_____: the codedeploy agent copies the app revision files from their temp location to their current location
______: the codedeploy agent copies the app revision files to a temp location.
____: run tasks on instances before they are registered with a LB
____: details of any tests to validate the service
____: run tasks on instances after they are registered with a LB.
____: details of any pre-installation scripts (ie: backing up current version, decrypting files)
_____:details of any post-installation scripts (ie: configuration tasks, change file permissions)
- Application Stop
- AfterInstall
- Application Start
- AfterAllowtraffic
- Download Bundle
- Validate Service
- AllowTraffic
- BeforeAllowTraffic
- Install
- Before Install
Application stop: gracefullly stop the app in prep for deploying the new version
Download Bundle: the codedeploy agent copies the app revision files to a temp location.
Before Install: details of any pre-installation scripts (ie: backing up current version, decrypting files)
Install: the codedeploy agent copies the app revision files from their temp location to their current location
After Install: details of any post-installation scripts (ie: configuration tasks, change file permissions)
Application Start :restarts any services that were stopped during Application Stop
Validate Service: details of any tests to validate the service
BeforeAllowTraffic: run tasks on instances before they are registered with a LB
AllowTraffic: register instances with a LB
AfterAllowTraffic: run tasks on instances after they are registered with a LB.