tflocal - Terraform with LocalStack
Small wrapper script to run Terraform against LocalStack.
Prerequisites
- Python 3.x
pipterraform
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 tflocal command line interface can be installed via pip:
pip install terraform-local
Configurations
The following environment variables can be configured:
TF_CMD: Terraform command to call (default:terraform)LOCALSTACK_HOSTNAME: host name of the target LocalStack instanceEDGE_PORT: port number of the target LocalStack instanceS3_HOSTNAME: special hostname to be used to connect to LocalStack S3 (default:s3.localhost.localstack.cloud)USE_EXEC: whether to useos.execinstead ofsubprocess.Popen(try using this in case of I/O issues)
Usage
The tflocal command has the same usage as the terraform command. For detailed usage,
please refer to the man pages of terraform --help.
Change Log
- v0.1: Initial release
License
This software library is released under the Apache License, Version 2.0 (see LICENSE).
Metadata
Release files for terraform-local 0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| terraform-local-0.1.tar.gz | 7.5 kB | Details |
Release files / terraform-local-0.1.tar.gz
| Download URL | terraform-local-0.1.tar.gz |
|---|---|
| Size | 7.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c65c4339e12f3c6767b4bf095eabb159029ccc808e63f914029ed560b5e9613a
|
|
BLAKE2b-256 checksum How to use checksums |
43bd721c88b117940118ea90d91b7ebc45cdae7c7c1fbae8ca9170664bd8d433
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.8.0 pkginfo/1.8.2 readme-renderer/33.0 requests/2.25.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.63.0 importlib-metadata/4.11.2 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.3 CPython/3.8.2
|