Created
March 25, 2019 09:06
-
-
Save sonufrienko/fd7ac5a658dc5d4cd81e119b4537f274 to your computer and use it in GitHub Desktop.
Blue/Green Deployments. Switch ECS target group on ALB.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Get all Rules from Listener | |
aws elbv2 describe-rules \ | |
--listener-arn {alb-listener-arn} | |
# Get Rule | |
aws elbv2 describe-rules \ | |
--rule-arn {alb-rule-arn} | |
# Modify Rule | |
aws elbv2 modify-rule \ | |
--rule-arn {alb-rule-arn} \ | |
--actions Type=forward,TargetGroupArn={target-group-arn} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment