cloudninjadev/AWS Terraform Action

Complete CI/CD for Terraform with AWS — fmt, validate, lint, docs, security scan, plan, and apply.

View on GitHub

Trust Signals

Scorecard Score
not yet scored
Maintenance Recency
Activelast commit Apr 18, 2026
License
None

Pinned Snippet

workflow.ymlSHA-pinned
uses: cloudninjadev/aws-terraform-action@f6eeb9bff662573d6d6686734d14b84465126751 # v2.0.2

tags can be moved; commit SHAs can't. why a SHA?

namedescriptionrequireddefault
terraform_versionTerraform version to install (e.g. "1.7.0" or "latest").nolatest
tflint_versionTFLint version to install (e.g. "v0.50.0" or "latest").nolatest
terraform_docs_versionterraform-docs version to install (e.g. "v0.17.0" or "latest").nolatest
working_directoryDirectory that contains the Terraform root module.no.
run_fmtRun `terraform fmt -check` to enforce formatting.notrue
run_validateRun `terraform validate` against the configuration.notrue
run_lintRun TFLint for additional linting rules.notrue
run_docsGenerate / verify Terraform module documentation with terraform-docs.nofalse
docs_pushWhen run_docs=true, push the generated README.md back to the branch. Set to "false" to only verify docs are current (CI mode). nofalse
run_security_scanRun Checkov security and compliance scan (soft-fail).notrue
run_planRun `terraform plan`.nofalse
run_applyRun `terraform apply`.nofalse
auto_approvePass `-auto-approve` to `terraform apply`.nofalse
aws_regionAWS region (required when any AWS operations are performed).nous-east-1
aws_access_key_idAWS Access Key ID (leave empty when using OIDC).no""
aws_secret_access_keyAWS Secret Access Key (leave empty when using OIDC).no""
aws_session_tokenAWS Session Token for temporary credentials.no""
role_to_assumeARN of the IAM role to assume via OIDC.no""
backend_configComma-separated list of backend config values (e.g. "bucket=my-bucket,key=tfstate").no""
var_filePath to a tfvars file passed to plan / apply.no""
extra_argsAdditional arguments appended to terraform plan / apply commands.no""
cache_pluginsCache Terraform providers and TFLint plugins to speed up subsequent runs.notrue
comment_on_prPost a summary comment on the pull request when triggered by a PR event.notrue
github_tokenGitHub token used to post PR comments. Pass secrets.GITHUB_TOKEN or github.token from your workflow.no""
namedescription
fmt_outcomeResult of the terraform fmt step (success | failure | skipped).
validate_outcomeResult of the terraform validate step (success | failure | skipped).
lint_outcomeResult of the tflint step (success | failure | skipped).
plan_outcomeResult of the terraform plan step (success | failure | skipped).
apply_outcomeResult of the terraform apply step (success | failure | skipped).
plan_outputText output produced by terraform plan.