Skip to content

Commit

Permalink
add tf plan workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
paliwalvimal committed May 2, 2024
1 parent 89abe31 commit be6f647
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 19 deletions.
19 changes: 0 additions & 19 deletions .github/workflows/tests.yml

This file was deleted.

29 changes: 29 additions & 0 deletions .github/workflows/tf-plan.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: tf-plan
on:
push:
branches:
- main
pull_request:

permissions:
id-token: write # This is required for requesting the JWT
contents: read # This is required for actions/checkout

jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: configure aws credentials
uses: aws-actions/configure-aws-credentials@v3
with:
role-to-assume: ${{ secrets.TF_READ_ONLY_GITHUB_OIDC_ROLE_ARN }}
aws-region: eu-west-1
- name: Set up Terraform
uses: hashicorp/setup-terraform@v3
- name: Terraform Init
id: init
run: terraform init
- name: Terraform Plan
id: plan
run: terraform plan -var 'name=baseline-waf-rule-group' -var 'scope=REGIONAL'

0 comments on commit be6f647

Please sign in to comment.