From 5e7a1a73358b2b29aa151da1e396aea14b9d5f59 Mon Sep 17 00:00:00 2001 From: Zachary Deziel Date: Fri, 11 Oct 2024 13:36:20 -0700 Subject: [PATCH] Update environment --- .github/workflows/cd-dev.yml | 1 + .github/workflows/cd-prod.yml | 5 +++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/cd-dev.yml b/.github/workflows/cd-dev.yml index a47afdf..cb38edb 100644 --- a/.github/workflows/cd-dev.yml +++ b/.github/workflows/cd-dev.yml @@ -11,6 +11,7 @@ permissions: jobs: build: + environment: "Space2Stats API Dev" runs-on: ubuntu-latest steps: diff --git a/.github/workflows/cd-prod.yml b/.github/workflows/cd-prod.yml index 5609fe0..423e9a6 100644 --- a/.github/workflows/cd-prod.yml +++ b/.github/workflows/cd-prod.yml @@ -11,6 +11,7 @@ permissions: jobs: build: + environment: "Space2Stats API Prod" runs-on: ubuntu-latest steps: @@ -24,10 +25,10 @@ jobs: uses: aws-actions/configure-aws-credentials@v1 with: role-to-assume: arn:aws:iam::017820688988:role/Space2Stats-Deploy-Role - aws-region: ${{ env.CDK_DEFAULT_REGION }} + aws-region: ${{ vars.CDK_DEFAULT_REGION }} - name: Bootstrap CDK (if not done yet) - run: cdk bootstrap aws://${{ env.CDK_DEFAULT_ACCOUNT }}/${{ env.CDK_DEFAULT_REGION }} + run: cdk bootstrap aws://${{ vars.CDK_DEFAULT_ACCOUNT }}/${{ vars.CDK_DEFAULT_REGION }} - name: Deploy CDK stack env: