Skip to content

CodyHelbling/iota-example-localstack-terraform

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

iota-example-localstack-terraform

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"
  }
}

Getting Started

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.

Prerequisites

  • Terraform
  • Localstack

Running the tests

See test.py

Built With

  • Terraform - "...safely and predictably create, change, and improve infrastructure."
  • Localstack - "A fully functional local AWS cloud stack."

About

A small example using Terraform with Localstack.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published