Skip to content

Commit

Permalink
bump aws creds action version, additional check post-init
Browse files Browse the repository at this point in the history
  • Loading branch information
tylerthome authored Sep 5, 2024
1 parent 84947a0 commit 3f8ae0e
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions .github/workflows/terraform-plan-with-oidc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ on:
- test
- prod

env:
AWS_REGION : "us-west-2"

permissions:
id-token: write
contents: read
Expand All @@ -25,12 +28,17 @@ jobs:
uses: actions/checkout@v4

- name: configure aws credentials
uses: aws-actions/configure-aws-credentials@v3
uses: aws-actions/configure-aws-credentials@v4
with:
role-to-assume: arn:aws:iam::035866691871:role/gha-incubator
role-session-name: ghaincubatorsession
aws-region: us-west-2
aws-region: ${{ env.AWS_REGION }}

# Hello from AWS: WhoAmI
- name: Sts GetCallerIdentity
run: |
aws sts get-caller-identity
- name: Setup terraform
uses: hashicorp/setup-terraform@v3

Expand Down

0 comments on commit 3f8ae0e

Please sign in to comment.