HomePhabricator
Diffusion Comm ad0f473b3376

[terraform] Disable traffic after terraform apply and reenable after health…

Description

[terraform] Disable traffic after terraform apply and reenable after health check

Summary:
In https://phab.comm.dev/rCOMMbf5cae4c208a9e0759e031d1189e6cab0a3a2812, I remove the unnecessary reenabling of ingress rules. However, I'm realizing now that having terraform apply run and restore general access right before the health check defeats the purpose of disabling general access in the first place.

The health check needs to always be able to access the keyserver, but could be lost in general traffic. Adding commands to disable general access right after terraform apply and adding back commands to restore access after health check

Test Plan: Ran the deploy script. Ingress rules are properly restored

Reviewers: ashoat, varun, bartek

Reviewed By: ashoat

Subscribers: tomek

Differential Revision: https://phab.comm.dev/D13088