Skip to content

Instantly share code, notes, and snippets.

@andymac4182
Created June 3, 2018 02:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save andymac4182/22a13bc35434d397ea4baf8c7a4ec445 to your computer and use it in GitHub Desktop.
Save andymac4182/22a13bc35434d397ea4baf8c7a4ec445 to your computer and use it in GitHub Desktop.
#!/bin/bash
source Shared.sh
aws elbv2 register-targets --target-group-arn $targetGroup --targets Id=$instanceId
describe-target-health $targetGroup $instanceId
aws elbv2 wait target-in-service --target-group-arn $targetGroup --targets Id=$instanceId
describe-target-health $targetGroup $instanceId
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment