DevopsArtFactory / goployer

AWS Deployer with Go
https://goployer.dev
Apache License 2.0
72 stars 13 forks source link

Goployer should support termination policy #116

Closed GwonsooLee closed 3 years ago

GwonsooLee commented 3 years ago

Currently goployer does not support termination policy setting. Now all autoscaling group is supposed to use Default termination policy. image

termination_policies option could be suitable for this configuration and this should be regional based. (per autoscaling group)

regions:
  - region: ap-northeast-2
    termination_policies: 
      - Default
      - OldestInstance

If termination_policies is not specified, then it should include Default only.

https://docs.aws.amazon.com/autoscaling/ec2/userguide/as-instance-termination.html#custom-termination-policy