Skip to content

Instantly share code, notes, and snippets.

@KyMidd
Created November 17, 2019 23:44
Show Gist options
  • Save KyMidd/77cac00cddaae833b507549674cfda34 to your computer and use it in GitHub Desktop.
Save KyMidd/77cac00cddaae833b507549674cfda34 to your computer and use it in GitHub Desktop.
- name: Verify Terraform version
run: terraform --version
- name: Terraform init
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
run: terraform init -input=false
- name: Terraform validation
run: terraform validate
- name: Terraform apply
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
run: terraform apply -auto-approve -input=false
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment