Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/studistcorporation/actions-setup-terraform-credentials


https://github.com/studistcorporation/actions-setup-terraform-credentials

terraform-managed

Last synced: 13 days ago
JSON representation

Awesome Lists containing this project

README

        

# Setup terraformrc

This action will setup the terraform credential(`~/.terraformrc`) with the given token.

## Usage

```yaml
steps
# Install terraform cli via aqua
- uses: aquaproj/[email protected]
with:
aqua_version: v1.20.2 # renovate depName=aquaproj/aqua
- run: aqua i

# Setup ~/.terraformrc
- uses: StudistCorporation/[email protected]
with:
token: ${{ secrets.TF_API_TOKEN }}

- run: terraform init
- run: terraform plan
```

## Inputs

### token

The token to used for authenticating with Terraform Cloud.

### hostname

The hostname to use in the credential file.
Default is `app.terraform.io`.