subhamay-bhattacharyya-gha/Terraform Destroy (Multi Cloud) and Summary
Destroys Terraform-managed infrastructure and displays a summary in the GitHub Step Summary.
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stale
- License
- None
Inputs
| name | description | required | default |
|---|---|---|---|
| cloud-provider | Cloud provider for backend storage. Options: 'aws', 'azure', 'gcp', 'databricks', 'snowflake' | yes | — |
| terraform-dir | Relative path to the directory containing Terraform configuration files (e.g., 'tf', 'infrastructure'). | no | tf |
| release-tag | Git release tag to check out. If omitted, the latest commit on the default branch is used. | no | "" |
| ci-pipeline | Set to 'true' to include the commit SHA in the Terraform state key (suitable for CI/CD). Use 'false' for static state keys. | no | false |
| backend-type | Backend type to use: 's3' for AWS S3 or 'remote' for HCP Terraform Cloud. | no | s3 |
| s3-bucket | Name of the S3 bucket used as the backend for storing the Terraform state file (AWS only). | no | — |
| s3-region | AWS region where the S3 backend bucket is located (e.g., us-east-1, eu-west-1) (AWS only). | no | — |
| s3-key-prefix | Optional prefix for the S3 state key (AWS only). | no | "" |
| tfc-token | HCP Terraform Cloud API token. Should be passed as a secret. Required when backend-type is 'remote'. | no | — |
| aws-region | AWS region for authentication. Required when cloud-provider is 'aws'. | no | — |
| aws-role-to-assume | AWS IAM role ARN to assume. Required when cloud-provider is 'aws'. | no | — |
| gcp-wif-provider | GCP Workload Identity Federation provider. Required when cloud-provider is 'gcp'. | no | — |
| gcp-service-account | GCP service account email for authentication. Required when cloud-provider is 'gcp'. | no | — |
| azure-client-id | Azure client ID for authentication. Required when cloud-provider is 'azure'. | no | — |
| azure-tenant-id | Azure tenant ID for authentication. Required when cloud-provider is 'azure'. | no | — |
| azure-subscription-id | Azure subscription ID for authentication. Required when cloud-provider is 'azure'. | no | — |
| snowflake-account | Snowflake account identifier. Required when cloud-provider is 'snowflake'. | no | — |
| snowflake-user | Snowflake user name. Required when cloud-provider is 'snowflake'. | no | — |
| snowflake-role | Snowflake role name. Required when cloud-provider is 'snowflake'. | no | — |
| snowflake-private-key | Snowflake private key for authentication. Required when cloud-provider is 'snowflake'. | no | — |
| databricks-host | Databricks workspace URL. Required when cloud-provider is 'databricks'. | no | — |
| databricks-token | Databricks personal access token. Required when cloud-provider is 'databricks'. | no | — |
Outputs
no outputs