Page MenuHomePhabricator

D13088.diff
No OneTemporary

D13088.diff

diff --git a/services/terraform/self-host/aws-deploy.sh b/services/terraform/self-host/aws-deploy.sh
--- a/services/terraform/self-host/aws-deploy.sh
+++ b/services/terraform/self-host/aws-deploy.sh
@@ -176,16 +176,21 @@
sleep $retry_interval
done
-
echo "Applying terraform changes"
terraform apply -auto-approve
+echo "Redisabling general lb traffic"
+disable_general_lb_traffic
+
echo "Redeploying primary service in $cluster_name"
aws ecs update-service --cluster "$cluster_name" --service "$primary_service_name" --force-new-deployment --desired-count 1 > /dev/null
echo "Waiting for health check at $health_check_domain to return status 200 OK"
check_health
+echo "Primary node successfully running. Re-enabling public access to load balancer"
+enable_lb_traffic
+
echo "Setting desired count of secondary service to $num_desired_secondary_nodes".
aws ecs update-service --cluster "$cluster_name" --service "$secondary_service_name" --desired-count "$num_desired_secondary_nodes" --force-new-deployment > /dev/null

File Metadata

Mime Type
text/plain
Expires
Tue, Nov 26, 7:16 PM (7 h, 38 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2585873
Default Alt Text
D13088.diff (1 KB)

Event Timeline