From 47ea9c089158a4f508da3a4ccc7bd5d88188bd66 Mon Sep 17 00:00:00 2001 From: huang0h Date: Mon, 2 Sep 2024 21:33:36 -0400 Subject: [PATCH] try fixed --- .github/workflows/ci-cd.yml | 2 +- apps/monarch/monarch-backend/src/main.ts | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/ci-cd.yml b/.github/workflows/ci-cd.yml index c385b0c..efc773b 100644 --- a/.github/workflows/ci-cd.yml +++ b/.github/workflows/ci-cd.yml @@ -101,7 +101,7 @@ jobs: deploy-monarch-backend: needs: pre-deploy - if: (contains(github.event.inputs.manual-deploy, 'monarch-backend') || contains(needs.pre-deploy.outputs.affected, 'monarch-backend')) && (github.event_name == 'push' || github.event_name == 'workflow_dispatch') && github.ref == 'refs/heads/main' + # if: (contains(github.event.inputs.manual-deploy, 'monarch-backend') || contains(needs.pre-deploy.outputs.affected, 'monarch-backend')) && (github.event_name == 'push' || github.event_name == 'workflow_dispatch') && github.ref == 'refs/heads/main' runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 diff --git a/apps/monarch/monarch-backend/src/main.ts b/apps/monarch/monarch-backend/src/main.ts index c9314ca..3eaa3a1 100644 --- a/apps/monarch/monarch-backend/src/main.ts +++ b/apps/monarch/monarch-backend/src/main.ts @@ -92,11 +92,11 @@ app.get('/geocode', async (req, res) => { //Initializing CognitoExpress constructor const cognitoExpress = new CognitoExpress({ - region: process.env.AWS_REGION, - cognitoUserPoolId: process.env.COGNITO_USER_POOL_ID, - IdentityPoolId: process.env.COGNITO_IDENTITY_POOL_ID, - RoleArn: process.env.ROLE_ARN, - AccountId: process.env.ACCOUNT_ID, + region: "us-east-2", + cognitoUserPoolId: "us-east-2_jlRWv5ExI", + IdentityPoolId: 'us-east-2:bf437025-d7bb-4691-9217-6dfe652cde4d', + RoleArn: 'arn:aws:cognito-identity:us-east-2:489881683177:identitypool/us-east-2:bf437025-d7bb-4691-9217-6dfe652cde4d', + AccountId: '489881683177', // your AWS account ID tokenUse: "access", //Possible Values: access | id tokenExpiration: 3600000 //Up to default expiration of 1 hour (3600000 ms) });