Skip to content

Instantly share code, notes, and snippets.

@mitchellhuang
Created December 28, 2018 23:22
Show Gist options
  • Save mitchellhuang/8e7a9d271902c9aff3febe92dcf58278 to your computer and use it in GitHub Desktop.
Save mitchellhuang/8e7a9d271902c9aff3febe92dcf58278 to your computer and use it in GitHub Desktop.
AWS ELB Target Autoscaling Group
aws elbv2 create-target-group --name <target_group_name> --protocol HTTP --port 80 --vpc-id <vpc_id>
aws autoscaling attach-load-balancer-target-groups --auto-scaling-group-name <id_of_the_autoscaling_group> --target-group-arns "<new_target_group_arns>"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment