subhamay-bhattacharyya-gha/Terraform Apply and Summary

Applies Terraform plan and writes a grouped resource summary with IDs and timestamp to GitHub Step Summary. Supports AWS, Azure, GCP, and HCP Terraform Cloud backends with built-in authentication.

View on GitHub

Trust Signals

Scorecard Score
not yet scored
Maintenance Recency
Stale
License
None
namedescriptionrequireddefault
cloud-providerTarget cloud provider or platform (aws, gcp, azure, snowflake, databricks, platform). Note: Snowflake and Databricks authentication must be configured in the calling workflow via environment variables.yes
tf-config-pathRelative path from the repository root to the Terraform configuration directory. This is where your main.tf, variables.tf, and other Terraform files are located.notf
release-tagGit release tag to check out. If omitted, the latest commit on the default branch is used.no""
ci-pipelineSet to 'true' to include the commit SHA in the Terraform state key (suitable for CI/CD). Use 'false' for static state keys.nofalse
backend-typeBackend type to use: 's3' for AWS S3 or 'remote' for HCP Terraform Cloud.nos3
s3-bucketName of the S3 bucket used as the backend for storing the Terraform state file (AWS only).no
s3-regionAWS region where the S3 backend bucket is located (e.g., us-east-1, eu-west-1) (AWS only).no
s3-key-prefixOptional prefix for the S3 state key (AWS only).no""
tfc-tokenHCP Terraform Cloud API token. Should be passed as a secret. Required when backend-type is 'remote'.no
aws-regionAWS region for authentication. Required when cloud-provider is 'aws'.no
aws-role-to-assumeAWS IAM role ARN to assume. Required when cloud-provider is 'aws'.no
gcp-wif-providerGCP Workload Identity Federation provider. Required when cloud-provider is 'gcp'.no
gcp-service-accountGCP service account email for authentication. Required when cloud-provider is 'gcp'.no
azure-client-idAzure client ID for authentication. Required when cloud-provider is 'azure'.no
azure-tenant-idAzure tenant ID for authentication. Required when cloud-provider is 'azure'.no
azure-subscription-idAzure subscription ID for authentication. Required when cloud-provider is 'azure'.no
tf-plan-nameName of the Terraform plan filenoterraform-plan
tf-plan-fileFile to save the Terraform plan outputnotfplan
tf-vars-fileOptional Terraform variable filenoterraform.tfvars

no outputs