Skip to content

Bump aws-actions/configure-aws-credentials from 4.0.1 to 4.0.2 #158

Bump aws-actions/configure-aws-credentials from 4.0.1 to 4.0.2

Bump aws-actions/configure-aws-credentials from 4.0.1 to 4.0.2 #158

name: terraform plan (management-account)
on:
pull_request:
paths:
- 'management-account/terraform/**'
- 'modules/**'
- '.github/workflows/management-account-plan.yml'
- '.github/workflows/management-account-apply.yml'
workflow_dispatch:
jobs:
plan:
runs-on: ubuntu-latest
permissions:
id-token: write
contents: read
defaults:
run:
working-directory: ./management-account/terraform
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
- uses: aws-actions/configure-aws-credentials@e3dd6a429d7300a6a4c196c26e071d42e0343502 # v4.0.2
with:
role-to-assume: arn:aws:iam::${{secrets.AWS_ROOT_ACCOUNT_ID}}:role/github-actions-plan
role-session-name: GitHubActions
aws-region: eu-west-2
- uses: hashicorp/setup-terraform@a1502cd9e758c50496cc9ac5308c4843bcd56d36 # v3.0.0
with:
terraform_version: 1.5.2
- run: terraform fmt -check
continue-on-error: true
- run: terraform init
- run: terraform validate -no-color
- run: terraform plan -no-color