Setup terraform by:
- Downloading required version if needed
- Initializing it
Required Terraform version. Default "0.14.0"
.
Required Path to the state file inside the S3 Bucket. Default "preproduction"
.
Required Working directory for terraform initialization. Default "."
.
- uses: gogaille/setup-terraform
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
with:
terraform-version: '0.14.0'
workspace-key-prefix: 'preproduction'
working-directory: 'infrastructure'