Skip to content

sarathkrish/invoke-terraform-run-api

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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'

About

Invokes Terraform Run API and return runId

Resources

License

Stars

Watchers

Forks

Packages

No packages published