Move files #1
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: Run Github repo example | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
terraform: | |
runs-on: ubuntu-latest | |
env: | |
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} | |
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} | |
AWS_REGION: "eu-west-1" | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Setup Terraform | |
uses: hashicorp/setup-terraform@v3 | |
- name: Initialize Terraform | |
working-directory: ./examples/full | |
run: terraform init -reconfigure -input=false | |
- name: Validate Terraform | |
working-directory: ./examples/full | |
run: terraform validate -no-color | |
- name: Plan Terraform | |
working-directory: ./examples/full | |
run: terraform plan -out=tfplan -no-color -input=false | |
- name: Apply Terraform | |
working-directory: ./examples/full | |
run: terraform apply -auto-approve -input=false tfplan |