Skip to content

About

Github action to update terraform cloud variable for continuous deployment

Resources

Stars

0 stars

Watchers

0 watching

Forks

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

Latest commit

 

History

11 Commits

Folders and files

Repository files navigation

Update Terraform Cloud Variable Set

This action updates a Terraform Cloud variable set https://www.terraform.io/docs/cloud/api/variables.html

If variable name doesn't exist it will automatically create it.

It borrows heavily from the work done by https://github.com/patrontech/devops-tf-cloud-update-var and https://github.com/sarathkrish/invoke-terraform-run-api so shout out to them.

Inputs

organizationName

Required Your Organization.

terraformToken

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

terraformHost

This is the Terraform Host Name. default: app.terraform.io.

variableName

Required The variable name to be updated.

variableValue

Required The value to update the variable with.

variableSetName

Required The name of the variable set.

Outputs

variableId

The variable ID.

Example usage

uses: slnw/devops-tf-cloud-update-cloudset-var@v1.0   
with:  
  variableSetName: mySet  
  organizationName: {{env.organization}}  
  terraformToken: {{secrets.Terraform_Token}}
  terraformHost: 'app.terraform.io'
  variableName: 'container_tag'
  variableValue: 'v1.1.1'

About

Github action to update terraform cloud variable for continuous deployment

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages