This GitHub Action is a wrapper for hashicorp/setup-terraform, it exposes the action inputs except for cli_config_credentials_token since Terraform Cloud will not be used. It authenticates automatically with a preconfigured custom HTTP state backend.
steps:
- uses: narwhl/setup-terraform@v1
with:
terraform_version: "1.7.1"
-
terraform_version -
terraform_wrapper -
enable_caching -
statepath to store the terraform state, must be unique per workflow -
use_federated_tokenuses token issued by sts, it has the validity of 1 hr instead of 5mins from github -
endpointpreconfigured