Add infrastructure bucket for storing assets

This commit is contained in:
2024-09-28 19:15:56 +02:00
parent 52d6d85203
commit 4de62d7334
17 changed files with 414 additions and 28 deletions
@@ -0,0 +1,47 @@
name: Terraform Validate
on:
pull_request:
branches:
- main
paths:
- "terraform/iac/**"
- .github/workflows/terraform-iac-validate.yaml
types:
- opened
- synchronize
- reopened
jobs:
terraform-validate:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Setup Terraform
uses: hashicorp/setup-terraform@v1
with:
terraform_version: 1.9.6
- name: Setup Sectool
uses: a13labs/setup-sectool@v1
- name: Terraform Init
env:
VAULT_MASTER_PASSWORD: ${{ secrets.VAULT_MASTER_PASSWORD }}
run: |
cd terraform/iac
sectool exec terraform init
- name: Terraform Plan
env:
VAULT_MASTER_PASSWORD: ${{ secrets.VAULT_MASTER_PASSWORD }}
run: |
cd terraform/iac
sectool exec -n terraform plan -out=tfplan
- name: Show Terraform Plan
run: |
cd terraform/iac
terraform show tfplan