Skip to content

Manual Apply

Manual Apply #8

Workflow file for this run

name: Apply
on:
workflow_dispatch:
jobs:
apply:
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v3
- name: Download Planfile from S3
run: aws s3 cp s3://${{ secrets.AWS_S3 }}/planfile planfile
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_KEY }}
- name: Set up Terraform
uses: hashicorp/setup-terraform@v2
with:
terraform_version: 1.6
- name: Terraform Apply
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_KEY }}
run: terraform apply -input=false planfile