Luca Demmel
04/08/2022, 6:57 AMFrank
Frank
Frank
sls info
to check if a service has been deployed in before_deploy
, and run the command in after_deploy
, down side of this is that it’s not done inside Post Deploy Phase.
• Track the state in Post Deploy Phase. For example, in Post Deploy Phase, look up if an SSM parameter ie. /deployStatus/$stage
exists. If it’s not it’s the first successful deploy, and creates the SSM. It doesn’t have to be an SSM key, it could be an S3 file that tracks the state.Luca Demmel
04/11/2022, 8:21 AM