dhollerbach/Terraform Tests With LocalStack

GitHub action that runs Terraform tests using LocalStack.

View on GitHub

Trust Signals

Scorecard Score
not yet scored
Maintenance Recency
Maintainedlast commit Mar 6, 2025
License
None

Pinned Snippet

workflow.ymlSHA-pinned
uses: dhollerbach/actions.terraform-tests-with-localstack@48bae7919dacd95e8def76b8cbeea14a102d0d31 # v1

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

namedescriptionrequireddefault
argsArguments to use when running `terraform init` and `terraform apply`. E.g. "--backend-config=my-config-file.conf --var-file=dev.tfvars -var MY_VARIABLE=some_value"no""
github-userThe GitHub user to associate with the personal access token. GitHub does not actually use this user so any value will work. Default is `github-user`.nogithub-user
localstack-api-keyThe LocalStack API key to use when setting up LocalStack. Required if using LocalStack Pro.no
localstack-image-tagThe LocalStack image tag to use when setting up LocalStack. Defaults to `latest`.nolatest
localstack-use-proWhether or not to use LocalStack Pro. Defaults to `false`.nofalse
personal-access-tokenThe GitHub personal access token to use when running `terraform init`. Specify if any modules are stored in private repositories.no
run-applyWhether or not to run `terraform apply --auto-approve`. Default is `true`.true
run-formatterWhether or not to run `terraform fmt -recursive`. Default is `true`.notrue
run-linterWhether or not to run `tflint --recursive`. Default is `true`.notrue
run-security-scannerWhether or not to run `tfsec`. Default is `true`.notrue
run-validatorWhether or not to run `terraform validate`. Default is `true`.notrue
terraform-versionThe Terraform version to setup. Required if Terraform is not previously setup.no
terraform-wrapperWhether or not to enable to Terraform wrapper when setting up Terraform. Defaults to `false`.nofalse
working-directoryThe working directory to run tests in. Default is the current directory.no.

no outputs