sudo docker-compose up -d
In order to create it, first you need to download provider binary locally.
https://learn.hashicorp.com/tutorials/terraform/install-cli - cli installation
Make sure you've terraform installed.
terraform init
That's the moment of win - you need to run terraform plan in order to check on which resources will be created
terraform plan
In order to create resources, but not only observe which of these could be created, you should run
terraform apply
As you've seen, the base resource which would be created is dynamodb, now you can test its usage with simple python script included here
python3 app-example.py
- dynamodb, lambda, kinesis: https://dev.to/mrwormhole/localstack-with-terraform-and-docker-for-running-aws-locally-3a6d
- s3: https://stackoverflow.com/questions/59307312/localstack-create-s3-bucket-locally-with-terraform-doesnt-have-a-name
- sqs: https://github.com/farhad-taran/Terraform-Localstack/blob/master/main.tf
- sqs, sns, iam & others small: https://github.com/jupitercl/aws-localstack-terraform-sns-sqs-lambda/tree/master/terraform