Skip to content

Commit

Permalink
fix: disable assume_role (#1583)
Browse files Browse the repository at this point in the history
  • Loading branch information
andreaangiolillo authored Nov 2, 2023
1 parent c055d68 commit 835ee91
Showing 1 changed file with 29 additions and 29 deletions.
58 changes: 29 additions & 29 deletions .github/workflows/acceptance-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -453,35 +453,35 @@ jobs:
TEST_REGEX: "^TestAccConfig"
run: make testacc

assume_role:
needs: [ change-detection, fetch-sts-assume-role-creds]
if: ${{ needs.change-detection.outputs.config == 'true' || github.event_name == 'workflow_dispatch' || github.event_name == 'schedule' || github.event.label.name == 'run-testacc' || github.event.label.name == 'run-testacc-config' || inputs.parent-event-name == 'release' }}
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version-file: 'go.mod'
- name: Acceptance Tests
env:
ASSUME_ROLE_ARN: ${{ vars.ASSUME_ROLE_ARN }}
AWS_REGION: ${{ vars.AWS_REGION }}
STS_ENDPOINT: ${{ vars.STS_ENDPOINT }}
SECRET_NAME: ${{ vars.AWS_SECRET_NAME }}
AWS_ACCESS_KEY_ID: ${{ needs.fetch-sts-assume-role-creds.outputs.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ needs.fetch-sts-assume-role-creds.outputs.AWS_SECRET_ACCESS_KEY }}
AWS_SESSION_TOKEN: ${{ needs.fetch-sts-assume-role-creds.outputs.AWS_SESSION_TOKEN }}
MONGODB_ATLAS_ORG_ID: ${{ vars.MONGODB_ATLAS_ORG_ID_CLOUD_DEV }}
MONGODB_ATLAS_BASE_URL: ${{ vars.MONGODB_ATLAS_BASE_URL }}
ACCTEST_TIMEOUT: ${{ vars.ACCTEST_TIMEOUT }}
TF_LOG: ${{ vars.LOG_LEVEL }}
TF_ACC: 1
PARALLEL_GO_TEST: 20
CI: true
TEST_REGEX: "^TestAccSTSAssumeRole"
run: make testacc
# assume_role: # See INTMDB-1245
# needs: [ change-detection, fetch-sts-assume-role-creds]
# if: ${{ needs.change-detection.outputs.config == 'true' || github.event_name == 'workflow_dispatch' || github.event_name == 'schedule' || github.event.label.name == 'run-testacc' || github.event.label.name == 'run-testacc-config' || inputs.parent-event-name == 'release' }}
# runs-on: ubuntu-latest
# steps:
# - name: Checkout
# uses: actions/checkout@v4
# - name: Set up Go
# uses: actions/setup-go@v4
# with:
# go-version-file: 'go.mod'
# - name: Acceptance Tests
# env:
# ASSUME_ROLE_ARN: ${{ vars.ASSUME_ROLE_ARN }}
# AWS_REGION: ${{ vars.AWS_REGION }}
# STS_ENDPOINT: ${{ vars.STS_ENDPOINT }}
# SECRET_NAME: ${{ vars.AWS_SECRET_NAME }}
# AWS_ACCESS_KEY_ID: ${{ needs.fetch-sts-assume-role-creds.outputs.AWS_ACCESS_KEY_ID }}
# AWS_SECRET_ACCESS_KEY: ${{ needs.fetch-sts-assume-role-creds.outputs.AWS_SECRET_ACCESS_KEY }}
# AWS_SESSION_TOKEN: ${{ needs.fetch-sts-assume-role-creds.outputs.AWS_SESSION_TOKEN }}
# MONGODB_ATLAS_ORG_ID: ${{ vars.MONGODB_ATLAS_ORG_ID_CLOUD_DEV }}
# MONGODB_ATLAS_BASE_URL: ${{ vars.MONGODB_ATLAS_BASE_URL }}
# ACCTEST_TIMEOUT: ${{ vars.ACCTEST_TIMEOUT }}
# TF_LOG: ${{ vars.LOG_LEVEL }}
# TF_ACC: 1
# PARALLEL_GO_TEST: 20
# CI: true
# TEST_REGEX: "^TestAccSTSAssumeRole"
# run: make testacc

event_trigger:
needs: [ change-detection ]
Expand Down

0 comments on commit 835ee91

Please sign in to comment.