Skip to content

chore(deps): update terraform aws to v5.35.0 #299

chore(deps): update terraform aws to v5.35.0

chore(deps): update terraform aws to v5.35.0 #299

Workflow file for this run

---
name: Terraform
# yamllint disable-line rule:truthy
on:
pull_request:
permissions:
id-token: write # This is required for requesting the JWT
contents: read # This is required for actions/checkout
jobs:
validate:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
terraform: [1.0.0, latest]
directories: [".", "examples/cost", "examples/simple", "examples/full"]
defaults:
run:
working-directory: ${{ matrix.directories }}
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
- uses: hashicorp/setup-terraform@a1502cd9e758c50496cc9ac5308c4843bcd56d36 # v3.0.0
with:
terraform_version: ${{ matrix.terraform }}
- run: terraform -version
- run: terraform init -input=false -backend=false
- run: terraform validate
tflint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
- uses: actions/cache@e12d46a63a90f2fae62d114769bbf2a179198b5c # v3.3.3
name: Cache plugin dir
with:
path: ~/.tflint.d/plugins
key: tflint-${{ hashFiles('.config/tflint.hcl') }}
- name: configure aws credentials
uses: aws-actions/configure-aws-credentials@010d0da01d0b5a38af31e9c3470dbfdabdecca3a # v4.0.1
with:
role-to-assume: ${{ secrets.TFLINT_ROLE_ARN }}
role-session-name: tflint
aws-region: ${{ secrets.TFLINT_AWS_REGION }}
- name: install tflint
run: |
# renovate: datasource=github-tags depName=terraform-linters/tflint
tflint_version="v0.50.2"
curl -o tflint.zip -L https://github.com/terraform-linters/tflint/releases/download/${tflint_version}/tflint_linux_amd64.zip
unzip tflint.zip
- name: Show version
run: ./tflint --config=.config/tflint.hcl --version
- name: Init TFLint
run: ./tflint --config=.config/tflint.hcl --init
- name: Run TFLint
run: ./tflint --config=.config/tflint.hcl -f compact