Find answers, ask questions, and connect with our
community around the world.

Home Forums AWS AWS Certified DevOps Engineer Professional Review Mode Set 2 Qn 25 Reply To: Review Mode Set 2 Qn 25

  • TutorialsDojo-Support

    Member
    June 13, 2020 at 10:30 am

    Hello xiaochris,

    Thank you for your feedback.

    For this question, you want to run Lambda functions to validate your new deployment, even before production traffic flows to the. The recommended stage on where to run the validations is on the “AfterAllowTestTraffic” lifecycle hook. At this stage, the new deployment has its own “test listener” in which you can perform testing to validate that the application is working as expected.

    With the “BeforeAllowTraffic” lifecycle hook, the validation on the “test listener” is completed and the new deployment in on its own target group. You use this stage when you know that the new deployment is successful and you need to perform extra actions before allowing the production traffic to it.

    https://docs.aws.amazon.com/codedeploy/latest/userguide/reference-appspec-file-structure-hooks.html#reference-appspec-file-structure-hooks-run-order-ecs

    Hope this helps.

    Regards,

    Kenneth Samonte @ Tutorials Dojo