From c398c144a788886e5811a770bdf331c65727d104 Mon Sep 17 00:00:00 2001 From: Jesse Lee Date: Thu, 7 Sep 2023 15:31:19 -0400 Subject: [PATCH] fix region to eu-west-1 for nightly --- .github/workflows/deploy.nightly.devnet.yml | 8 ++++---- .github/workflows/nightly.yml | 3 ++- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/.github/workflows/deploy.nightly.devnet.yml b/.github/workflows/deploy.nightly.devnet.yml index 2c4713b8d3..b7b908a413 100644 --- a/.github/workflows/deploy.nightly.devnet.yml +++ b/.github/workflows/deploy.nightly.devnet.yml @@ -63,7 +63,7 @@ jobs: sed 's/# backend "s3" {}/backend "s3" {}/' main.tf > main.tf.tmp && mv main.tf.tmp main.tf - name: Terraform Init id: init - run: terraform init -backend-config="bucket=polygon-edge-devnet-tf-states" -backend-config="key=state/${{ secrets.TF_VAR_DEPLOYMENT_NAME }}" -backend-config="region=${{ secrets.AWS_REGION }}" + run: terraform init -backend-config="bucket=polygon-edge-devnet-terraform-states" -backend-config="key=state/${{ secrets.TF_VAR_DEPLOYMENT_NAME }}" -backend-config="region=${{ secrets.AWS_REGION }}" - name: Terraform Validate id: validate run: terraform validate -no-color @@ -81,7 +81,7 @@ jobs: TF_VAR_deployment_name: ${{ secrets.TF_VAR_DEPLOYMENT_NAME }} TF_VAR_owner: ${{ secrets.TF_VAR_OWNER }} - name: Retrieve state file from s3 - run: aws s3 cp s3://polygon-edge-devnet-tf-states/state/${{ secrets.TF_VAR_DEPLOYMENT_NAME }} state.json + run: aws s3 cp s3://polygon-edge-devnet-terraform-states/state/${{ secrets.TF_VAR_DEPLOYMENT_NAME }} state.json - name: Configure private keys run: | terraform output pk_ansible > ~/devnet_private.key @@ -268,9 +268,9 @@ jobs: sed 's/# backend "s3" {}/backend "s3" {}/' main.tf > main.tf.tmp && mv main.tf.tmp main.tf - name: Terraform Init id: init - run: terraform init -backend-config="bucket=polygon-edge-devnet-tf-states" -backend-config="key=state/${{ secrets.TF_VAR_DEPLOYMENT_NAME }}" -backend-config="region=${{ secrets.AWS_REGION }}" + run: terraform init -backend-config="bucket=polygon-edge-devnet-terraform-states" -backend-config="key=state/${{ secrets.TF_VAR_DEPLOYMENT_NAME }}" -backend-config="region=${{ secrets.AWS_REGION }}" - name: Retrieve state file from s3 - run: aws s3 cp s3://polygon-edge-devnet-tf-states/state/${{ secrets.TF_VAR_DEPLOYMENT_NAME }} state.json + run: aws s3 cp s3://polygon-edge-devnet-terraform-states/state/${{ secrets.TF_VAR_DEPLOYMENT_NAME }} state.json - name: Terraform Destroy id: destroy run: terraform destroy -auto-approve -state=state.json diff --git a/.github/workflows/nightly.yml b/.github/workflows/nightly.yml index ee5d516b2f..0c0f3f16a4 100644 --- a/.github/workflows/nightly.yml +++ b/.github/workflows/nightly.yml @@ -48,7 +48,8 @@ jobs: name: Build Devnet uses: ./.github/workflows/deploy.nightly.devnet.yml secrets: - AWS_REGION: ${{ secrets.AWS_REGION }} + # AWS_REGION: ${{ secrets.AWS_REGION }} + AWS_REGION: eu-west-1 AWS_ROLE_ARN: ${{ secrets.AWS_ROLE_ARN }} TF_VAR_DEPLOYMENT_NAME: ${{ secrets.TF_VAR_DEPLOYMENT_NAME }} TF_VAR_OWNER: ${{ secrets.TF_VAR_OWNER }}