Skip to content

Latest commit

 

History

History
50 lines (30 loc) · 1002 Bytes

README.md

File metadata and controls

50 lines (30 loc) · 1002 Bytes

Invoke Terraform Runs API

This action invoke Terraform Runs API
https://www.terraform.io/docs/cloud/api/run.html

Inputs

workSpaceName

Required The name of the workspace.

organizationName

Required Your Organization.

terraformToken

Required Your Terraform token. Please use secret to store your Terraform token.

terraformHost

Required This is the Terraform Host Name. For Tarraform cloud its app.terraform.io.

isDestroy

Required Specifies if this plan is a destroy plan, which will destroy all provisioned resources.

message

Required Specifies the message to be associated with this run.

Outputs

runId

The run ID.

Example usage

uses: sarathkrish/invoke-terraform-run-api@v1.0   
with:  
  workSpaceName: MyTestWorkspace  
  organizationName: {{env.organization}}  
  terraformToken: {{secrets.Terraform_Token}}
  terraformHost: 'app.terraform.io'
  isDestroy: false
  message: 'GitHub Actions'