From 0cd74e64fa4ff07560244bd595b82c248845a768 Mon Sep 17 00:00:00 2001 From: Min Xia Date: Mon, 28 Oct 2024 19:38:44 -0700 Subject: [PATCH] Fix the terraform destroy failures (#301) *Description of changes:* Fix the terraform destroy failures By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license. --- .github/workflows/node-lambda-test.yml | 4 +++- .github/workflows/python-lambda-test.yml | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/node-lambda-test.yml b/.github/workflows/node-lambda-test.yml index c08a62fc..ea081c8a 100644 --- a/.github/workflows/node-lambda-test.yml +++ b/.github/workflows/node-lambda-test.yml @@ -218,4 +218,6 @@ jobs: cd ${{ env.TEST_RESOURCES_FOLDER }}/terraform/node/lambda/lambda && terraform destroy -auto-approve \ -var="sdk_layer_name=AWSOpenTelemetryDistroJs-${{ github.run_id }}" \ -var="function_name=${{env.TERRAFORM_LAMBDA_FUNCTION_NAME}}" \ - -var="layer_artifacts_directory=${{ env.ARTIFACTS_DIR }}" + -var="layer_artifacts_directory=${{ env.ARTIFACTS_DIR }}" \ + -var="region=${{ env.E2E_TEST_AWS_REGION }}" \ + -var="is_canary=${{ env.IS_CANARY }}" diff --git a/.github/workflows/python-lambda-test.yml b/.github/workflows/python-lambda-test.yml index 5467819f..e12826ee 100644 --- a/.github/workflows/python-lambda-test.yml +++ b/.github/workflows/python-lambda-test.yml @@ -244,4 +244,6 @@ jobs: cd ${{ env.TEST_RESOURCES_FOLDER }}/terraform/python/lambda/lambda && terraform destroy -auto-approve \ -var="sdk_layer_name=AWSOpenTelemetryDistroPython-${{ github.run_id }}" \ -var="function_name=${{env.TERRAFORM_LAMBDA_FUNCTION_NAME}}" \ - -var="layer_artifacts_directory=${{ env.ARTIFACTS_DIR }}" \ No newline at end of file + -var="layer_artifacts_directory=${{ env.ARTIFACTS_DIR }}" \ + -var="region=${{ env.E2E_TEST_AWS_REGION }}" \ + -var="is_canary=${{ env.IS_CANARY }}" \ No newline at end of file