Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 16 additions & 1 deletion .github/workflows/java-lambda-layer-perf-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ jobs:
uses: aws-actions/configure-aws-credentials@v4
with:
role-to-assume: arn:aws:iam::${{ secrets.APPLICATION_SIGNALS_E2E_TEST_ACCOUNT_ID }}:role/${{ secrets.APPLICATION_SIGNALS_E2E_TEST_ROLE_NAME }}
aws-region: us-east-1
aws-region: us-east-1

- name: Checkout aws-otel-java-instrumentation
uses: actions/checkout@v4
Expand Down Expand Up @@ -83,6 +83,13 @@ jobs:
terraform init
terraform apply -auto-approve -var "adot_layer_arn=${{ env.LAYER_VERSION_ARN }}"

# Re-authenticate to refresh credentials (important!)
- name: Refresh AWS Credentials
uses: aws-actions/configure-aws-credentials@v4
with:
role-to-assume: arn:aws:iam::${{ secrets.APPLICATION_SIGNALS_E2E_TEST_ACCOUNT_ID }}:role/${{ secrets.APPLICATION_SIGNALS_E2E_TEST_ROLE_NAME }}
aws-region: us-east-1

- name: Checkout current repository
uses: actions/checkout@v4
with:
Expand Down Expand Up @@ -131,6 +138,14 @@ jobs:
layer_results.txt
retention-days: 90

# Always re-authenticate to refresh credentials before cleanup
- name: Refresh AWS Credentials before cleanup
if: success() || failure() || cancelled()
uses: aws-actions/configure-aws-credentials@v4
with:
role-to-assume: arn:aws:iam::${{ secrets.APPLICATION_SIGNALS_E2E_TEST_ACCOUNT_ID }}:role/${{ secrets.APPLICATION_SIGNALS_E2E_TEST_ROLE_NAME }}
aws-region: us-east-1

- name: Cleanup Terraform Resources
if: success() || failure() || cancelled()
run: |
Expand Down
Loading