B. Application Stop -> Before Install -> After Install -> Application Start
> https://docs.aws.amazon.com/codedeploy/latest/userguide/reference-appspec-file-structure-hooks.html#reference-appspec-file-structure-hooks-run-order
> Section: Run Order of Hooks in a Deployment
Run order of hooks in a deployment (without classic load balancer in deployment group)
Start -> Application Stop -> Download Bundle -> Before Install -> Install -> After Install -> Application Start -> Validate Service -> End
B) Correct.
ApplicationStop:
Stops the application gracefully. This is where you would stop or clean up your existing application processes or services.
BeforeInstall:
Prepares the instance for the new deployment. You can use this hook to perform tasks like backing up files or preparing dependencies.
AfterInstall:
Performs the tasks after the new application revision has been installed. This can include activities such as configuration updates or setting permissions.
ApplicationStart:
Starts the application or service with the newly deployed version.
ValidateService (optional):
Validates that the deployment was successful. You can run tests here to ensure the application is functioning correctly.
You might only need a specific hook for a deployment. For example:
If you only need to stop the application before updating files, you would only define the ApplicationStop hook.
If you only want to validate the service after deployment, you can define just the ValidateService hoo
B. Application Stop -> Before Install -> After Install -> Application Start
(https://docs.aws.amazon.com/codedeploy/latest/userguide/reference-appspec-file-structure-hooks.html )
A voting comment increases the vote count for the chosen answer by one.
Upvoting a comment with a selected answer will also increase the vote count towards that answer by one.
So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.
awscertified
Highly Voted 3 years, 6 months agoakitravv
Highly Voted 3 years, 3 months agosumanshu
Most Recent 4 months, 1 week agosumanshu
4 months, 1 week agosumanshu
4 months, 1 week agorcaliandro
1 year, 10 months agosichilam
2 years, 3 months agoBhargav2211
3 years, 4 months agoLearnerThbsh
3 years, 4 months agoVAG1595
3 years, 6 months agowils3
3 years, 6 months agocodeScalable
3 years, 6 months agosaeidp
3 years, 6 months agokinetic1g
3 years, 6 months agoFHU
3 years, 6 months agoBillyC
3 years, 6 months ago