Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3368319
D13088.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
D13088.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D13088: [terraform] Disable traffic after terraform apply and reenable after health check
Attached
Detach File
Event Timeline
Log In to Comment