Skip to content

chore(): added the working dir #7

chore(): added the working dir

chore(): added the working dir #7

Workflow file for this run

name: Terraform Deployment
on:
push:
branches:
- setup-workflow
jobs:
terraform:
runs-on: ubuntu-latest
working-directory: ./terraform

Check failure on line 11 in .github/workflows/deploy.yaml

View workflow run for this annotation

GitHub Actions / Terraform Deployment

Invalid workflow file

The workflow is not valid. .github/workflows/deploy.yaml (Line: 11, Col: 5): Unexpected value 'working-directory'
steps:
- name: Checkout Code
uses: actions/checkout@v4
- name: Set up Terraform
uses: hashicorp/setup-terraform@v2
with:
terraform_version: 1.9.8
- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@v2
with:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
aws-region: eu-central-1
- name: Terraform Init
run: terraform init
- name: Terraform Validate
run: terraform validate
- name: Terraform Plan
run: terraform plan -out=plan.tfplan
- name: Terraform Apply
run: terraform apply -auto-approve plan.tfplan