dhollerbach/Terraform Tests With LocalStack
GitHub action that runs Terraform tests using LocalStack.
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Maintainedlast commit Mar 6, 2025
- License
- None
Pinned Snippet
uses: dhollerbach/actions.terraform-tests-with-localstack@48bae7919dacd95e8def76b8cbeea14a102d0d31 # v1tags can be moved; commit SHAs can't. why a SHA?
Inputs
| name | description | required | default |
|---|---|---|---|
| args | Arguments 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-user | The 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`. | no | github-user |
| localstack-api-key | The LocalStack API key to use when setting up LocalStack. Required if using LocalStack Pro. | no | — |
| localstack-image-tag | The LocalStack image tag to use when setting up LocalStack. Defaults to `latest`. | no | latest |
| localstack-use-pro | Whether or not to use LocalStack Pro. Defaults to `false`. | no | false |
| personal-access-token | The GitHub personal access token to use when running `terraform init`. Specify if any modules are stored in private repositories. | no | — |
| run-apply | Whether or not to run `terraform apply --auto-approve`. Default is `true`. | — | true |
| run-formatter | Whether or not to run `terraform fmt -recursive`. Default is `true`. | no | true |
| run-linter | Whether or not to run `tflint --recursive`. Default is `true`. | no | true |
| run-security-scanner | Whether or not to run `tfsec`. Default is `true`. | no | true |
| run-validator | Whether or not to run `terraform validate`. Default is `true`. | no | true |
| terraform-version | The Terraform version to setup. Required if Terraform is not previously setup. | no | — |
| terraform-wrapper | Whether or not to enable to Terraform wrapper when setting up Terraform. Defaults to `false`. | no | false |
| working-directory | The working directory to run tests in. Default is the current directory. | no | . |
Outputs
no outputs