Page MenuHomePhabricator

D12959.id43056.diff
No OneTemporary

D12959.id43056.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
@@ -19,6 +19,10 @@
health_check_domain=$(echo "var.keyserver_domain_name" | terraform console -var-file terraform.tfvars.json | tr -d '"')
health_check_url="https://${health_check_domain}/health"
num_desired_secondary_nodes=$(echo "var.desired_secondary_nodes" | terraform console -var-file terraform.tfvars.json)
+aws_region=$(echo "var.region" | terraform console -var-file terraform.tfvars.json | tr -d '"')
+
+# Set aws-cli region to aws region self-hosted keyserver is deployed on
+export AWS_DEFAULT_REGION=$aws_region
if [[ -z "${AWS_ACCESS_KEY_ID}" || -z "${AWS_SECRET_ACCESS_KEY}" ]]; then
echo "Error: AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY environment variables must be set to run migration."

File Metadata

Mime Type
text/plain
Expires
Sat, Nov 23, 2:30 AM (17 h, 19 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2567542
Default Alt Text
D12959.id43056.diff (918 B)

Event Timeline