terraform-local
Thin wrapper script to run Terraform against LocalStack
Decision gist · record as of 2026-08-14
Yes. This is a well-maintained, actively developed tool with no security vulnerabilities, low install friction, and a clear use case for local Terraform testing. The permissive Apache 2.0 license poses no restrictions. Install it if you use Terraform and LocalStack together for local development or testing; skip it if you don't use LocalStack or don't test Terraform locally.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires Terraform to be installed separately on your system; Python 3.x and pipx or a virtual environment for installation.
- Low friction installation via pipx or venv.
- Package is actively maintained with recent release on 2026-04-13, 321 GitHub stars, and no known vulnerabilities.
License · maintenance · safety
Apache License 2.0 (permissive) — Released under Apache License 2.0 (permissive), allowing free use, modification, and distribution with minimal restrictions—suitable for both commercial and open-source projects.
last release 2026-04-13 (123 days) · last repo commit 2026-04-13 · 321 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 103,136 downloads/mo, #12,829 on PyPI
Alternatives
Verify before relying
# Install via pipx (recommended)
pipx install terraform-local
# Use tflocal command identically to terraform
tflocal plan
tflocal apply- Whether the package works with Terraform versions beyond those tested in development
- Performance characteristics when handling large Terraform configurations or many AWS services
What it is and what it does
terraform-local is a thin wrapper that bridges Terraform and LocalStack, a local AWS emulation platform. It intercepts Terraform runs and injects a temporary override file that redirects all AWS provider endpoints to LocalStack's local API (typically http://localhost:4566), allowing you to test infrastructure-as-code locally without touching real AWS resources.
The package works by leveraging Terraform's override mechanism to inject provider configuration. It handles multiple AWS services, supports provider aliases, S3 backends with state locking, multi-account setups, and custom endpoint configuration through environment variables. It's designed to be a drop-in replacement for the terraform command in local development workflows, with the same CLI interface and argument passing.
Use it for
- Test Terraform configurations locally before deploying to real AWS, reducing costs and iteration time.
- Develop and validate infrastructure code in CI/CD pipelines using LocalStack as a mock AWS environment.
- Debug Terraform modules and provider configurations without risking production or staging environments.
- Work offline or in isolated networks by running a complete local AWS mock stack.
- Set up multi-account Terraform testing scenarios using LocalStack's account emulation features.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes.
This is a well-maintained, actively developed tool with no security vulnerabilities, low install friction, and a clear use case for local Terraform testing. The permissive Apache 2.0 license poses no restrictions. Install it if you use Terraform and LocalStack together for local development or testing; skip it if you don't use LocalStack or don't test Terraform locally.
Install
terraform-local on PyPI
Before you install
Low friction installation via pipx or venv. Package is actively maintained with recent release on 2026-04-13, 321 GitHub stars, and no known vulnerabilities. Depends on three stable runtime packages: localstack-client, python-hcl2, and packaging.
Requires Terraform to be installed separately on your system; Python 3.x and pipx or a virtual environment for installation.
License in practice
Released under Apache License 2.0 (permissive), allowing free use, modification, and distribution with minimal restrictions—suitable for both commercial and open-source projects.
Quickstart
# Install via pipx (recommended)
pipx install terraform-local
# Use tflocal command identically to terraform
tflocal plan
tflocal apply
Verify before relying
- Whether the package works with Terraform versions beyond those tested in development
- Performance characteristics when handling large Terraform configurations or many AWS services
Package facts
| License | Apache License 2.0 permissive |
| Python support | Not specified |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 3 packageslocalstack-clientpython-hcl2packaging |
| Maintenance | Actively maintained 123 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 103,136 / month, #12,829 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | License :: OSI Approved :: Apache Software LicenseProgramming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.7Programming Language :: Python :: 3.8Programming Language :: Python :: 3.9Topic :: Software Development :: Testing |
Evidence: terraform_local-0.26.0-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “terraform localstack local testing”
- terraform-localA wrapper script that runs Terraform against LocalStack by…
- localstack-extProvides extensions and additional functionality for LocalStack, a…
- localstack-clientA Python client that wraps boto3 to redirect AWS API calls to a local…
Give your agent the search over MCP, or paste the wish link into any chat.
More Testing packages
Pluggy provides a plugin system that lets you define hook specifications and register implementations to be called in sequence, enabling extensible Python applications without tight coupling.
Install it if you're building an extensible application or framework.
pytest is a testing framework that lets you write test functions using plain assert statements and automatically discovers and runs them, with detailed failure reporting.
virtualenv creates isolated Python environments where packages can be installed independently without affecting the system Python or other projects.
Coverage.py measures which lines of Python code are executed during test runs, reporting coverage percentages and identifying untested code paths.
Install it if you want to measure test completeness or enforce coverage thresholds in your project.
pytest-asyncio is a pytest plugin that enables writing and running async test functions using the asyncio library, allowing developers to await code directly within test cases.
Install it if you write tests for any asyncio-based code.
A pytest plugin that generates test reports in Common Test Report Format (CTRF) as JSON, compatible with pytest-xdist and pytest-playwright for distributed and browser-based testing.
Install it if you need CTRF-formatted test output for CI/CD integration or cross-tool reporting.
See also pulumi-local · awscli-local · localstack-client · localstack · localstack-ext · terraform-compliance · moto-ext · localstack-twisted · python-terraform · tftest