{"repo":"localstack/terraform-local","free":true,"listed":false,"github":"https://github.com/localstack/terraform-local","clone":"git clone https://github.com/localstack/terraform-local.git","description":"Terraform CLI wrapper to deploy your Terraform applications directly to LocalStack","language":"Python","stars":321,"topics":["localstack","terraform"],"license":"Apache-2.0","category":"deployment-docker-iac","readme_excerpt":"tflocal - Terraform with LocalStack This package provides tflocal - a small wrapper script to run Terraform against LocalStack. Prerequisites Python 3.x pip or pipx terraform How it works The script uses the Terraform Override mechanism and creates a temporary file localstack providers override.tf to configure the endpoints for the AWS provider section. The endpoints for all services are configured to point to the LocalStack API ( http://localhost:4566 by default). Installation The recommended way to install tflocal is using pipx, which installs Python CLI tools in their own isolated environments. This avoids conflicts with system packages and the externally-managed-environment error (PEP 668) seen on modern Linux distributions. 1) Recommended: Using pipx First, ensure pipx is installed. On Debian/Ubuntu: Or, using pip (for other systems): Then, run pipx ensurepath to add pipx's binaries to your system's PATH. You may need to restart your shell for this to take effect. Install tflocal with pipx: To upgrade tflocal in the future, run: pipx upgrade terraform-local. 2) Alternative: Using a Virtual Environment If you prefer not to use pipx, you can install tflocal into a standard Python virtual environment (venv): Bash Create a virtual environment (e.g., in your project directory) Activate it Install the package Note: You must activate this venv (source .venv/bin/activate) every time you want to use the tflocal command. Configurations The following environment variables can be co","default_branch":null,"files":null,"tree":[],"storefront":"/r/localstack","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/localstack/terraform-local/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}