This action will setup the terraform credential(~/.terraformrc
) with the given token.
steps
# Install terraform cli via aqua
- uses: aquaproj/aqua-installer@v1.1.2
with:
aqua_version: v1.20.2 # renovate depName=aquaproj/aqua
- run: aqua i
# Setup ~/.terraformrc
- uses: StudistCorporation/actions-setup-terraform-credentials@v1.0.0
with:
token: ${{ secrets.TF_API_TOKEN }}
- run: terraform init
- run: terraform plan
The token to used for authenticating with Terraform Cloud.
The hostname to use in the credential file.
Default is app.terraform.io
.