Update terraform-aws-modules/iam/aws requirement from ~> 4 to ~> 5 (#32) #80
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: | |
pull_request: | |
branches: | |
- main | |
paths-ignore: | |
- .editorconfig | |
- .gitignore | |
- LICENSE.md | |
- README.md | |
push: | |
branches: | |
- main | |
paths-ignore: | |
- .editorconfig | |
- .gitignore | |
- LICENSE.md | |
- README.md | |
jobs: | |
verify: | |
name: Verify | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Setup Terraform | |
uses: hashicorp/setup-terraform@v3 | |
with: | |
terraform_version: 1.1.2 | |
- name: Initialise with no backend | |
run: terraform init -backend=false | |
- name: Check formatting | |
run: terraform fmt -check -recursive | |
- name: Validate the configuration | |
run: terraform validate | |
caller-identity: | |
if: ${{ github.event_name == 'push' }} | |
name: Return the IAM user | |
permissions: | |
contents: read | |
id-token: write | |
runs-on: ubuntu-latest | |
steps: | |
- name: Configure AWS credentials | |
uses: aws-actions/configure-aws-credentials@master | |
with: | |
aws-region: ${{ secrets.AWS_REGION }} | |
role-to-assume: arn:aws:iam::${{ secrets.AWS_ACCOUNT_ID }}:role/github | |
- run: aws sts get-caller-identity |