subhamay-bhattacharyya-gha/Infracost Run

Downloads a Terraform plan artifact and runs Infracost to generate a cost breakdown.

View on GitHub

Trust Signals

Scorecard Score
not yet scored
Maintenance Recency
Stale
License
None
namedescriptionrequireddefault
terraform-dirRelative path to the directory containing Terraform configuration files (e.g., 'tf', 'infrastructure').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
s3-bucketName of the S3 bucket used as the backend for storing the Terraform state file.yes
s3-regionAWS region where the S3 backend bucket is located (e.g., us-east-1, eu-west-1).yes
tf-plan-nameName of the Terraform plan artifact.noterraform-plan
tf-plan-fileBase filename (without extension) for the Terraform plan output.notfplan
tf-vars-fileOptional Terraform variable file.noterraform.tfvars
infracost-api-keyInfracost API key.yes
gist-idGist ID containing the Infracost configuration (e.g., max cost).yes
gist-filenameFilename of the Gist containing the Infracost configuration (e.g., 'infracost-config.json').yesinfracost-config.json
environmentGitHub environment name (e.g., 'prod', 'test', 'devl'). Used to match max cost in Gist.nodevl
namedescription
monthly-costTotal monthly cost from Infracost
max-costMaximum cost threshold from Gist or fallback