Skip to content

cloudify-cosmo/terraform-destroy-action

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

2 Commits
 
 
 
 

Repository files navigation

Execute Terraform Environment Destroy.

Environment Variables

This Action uses the Cloudify Profile environment variables described in the official Cloudify documentation (see More Information below).

Inputs

(Certain commonly-used inputs are documented in our official website; see More Information below)

Notes

  • this action handles environment name and labels collision, and it will handle that by passing [environment-id]
  • it will check if the environment exists or not [ if it doesn't exist it will not do anything ] and if it exists it will trigger terraform_destroy then delete the environment

Example

jobs:
  test_job:
    steps:
      - name: Delete terraform environment
        uses: cloudify-cosmo/terraform-destroy-action@v1.3
        with:
          environment-name: "test-$GITHUB_RUN_ID"
          labels: some_label:label_value,yet_another_label:some_value

More Information

Refer to Cloudify CI/CD Integration for additional information about Cloudify's integration with CI/CD tools.