Skip to content

Instantly share code, notes, and snippets.

@sonufrienko
Created March 25, 2019 09:06
Show Gist options
  • Save sonufrienko/fd7ac5a658dc5d4cd81e119b4537f274 to your computer and use it in GitHub Desktop.
Save sonufrienko/fd7ac5a658dc5d4cd81e119b4537f274 to your computer and use it in GitHub Desktop.
Blue/Green Deployments. Switch ECS target group on ALB.
# 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