Concepts
Understanding concept of goployer is so important
How Goployer works
- Here’s the steps that goployer executes for deployment
- Generate new version for current deployment.
If other autoscaling groups of sample application already existed, for examplehello-v001, then next version will behello-v002 - Create a new launch template.
- Create autoscaling group with launch template from the previous step. A newly created autoscaling group will be automatically attached to the target groups you specified in manifest.
- Check all instances of all stacks are healty. Until all of them pass healthchecking, it won’t go to the next step.
- (optional) If you add
autoscalingin manifest, goployer creates autoscaling policies and put these to the autoscaling group. If you usealarmswith autoscaling, then goployer will also create a cloudwatch alarm for autoscaling policy. - After all stacks are deployed, then goployer tries to delete previous versions of the same application. Launch templates of previous autoscaling groups are also going to be deleted.