A small example of using Terraform with Localstack.
TODO:
- Find an idiomatic way in Terraform to use Localstack over AWS by reading an environment variable.
- Improve documentation.
This is how I pointed to Localstack instead of AWS.
provider "aws" {
endpoints {
dynamodb = "http://localhost:4569"
iam = "http://localhost:4593"
lambda = "http://localhost:4574"
}
}
cd terraform; make localstack
make (init|plan|apply)
Optional: localstack web
to spin up Localstack's web dashboard ( http://0.0.0.0:8080/ )
See test.py for examples making calls to Localstack resources.
- Terraform
- Localstack
See test.py
- Terraform - "...safely and predictably create, change, and improve infrastructure."
- Localstack - "A fully functional local AWS cloud stack."