diff --git a/.github/workflows/sonar.yml b/.github/workflows/sonar.yml index 61935a1e4..db2b5be07 100644 --- a/.github/workflows/sonar.yml +++ b/.github/workflows/sonar.yml @@ -118,6 +118,8 @@ jobs: python-version: 3.8 - name: Tests and coverage + env: + FC_API_TOKEN: ${{ secrets.FOREST_CLIENT_API_API_KEY }} run: | cd server/admin_management pip install -r requirements.txt -r requirements-dev.txt diff --git a/infrastructure/server/fam_admin_management_api.tf b/infrastructure/server/fam_admin_management_api.tf index ecc6b4d18..f2d00c9f2 100644 --- a/infrastructure/server/fam_admin_management_api.tf +++ b/infrastructure/server/fam_admin_management_api.tf @@ -128,6 +128,9 @@ resource "aws_lambda_function" "fam_admin_management_api_function" { COGNITO_CLIENT_ID = "3hv7q2mct0okt12m5i3p5v4phu" ALLOW_ORIGIN = "${var.front_end_redirect_path}" + + FC_API_TOKEN = "${var.forest_client_api_api_key}" + FC_API_BASE_URL = "${var.forest_client_api_base_url}" } }