Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

README.md

Terraform Resources

Key Value
Services S3, Lambda, API Gateway, RDS, ElastiCache, IAM
Integrations Terraform
Categories IaC

Introduction

A demo application deploying various AWS resources to LocalStack via Terraform. The sample creates a range of AWS resources including S3 buckets, Lambda functions, API Gateway endpoints, RDS parameter groups, and ElastiCache clusters — all using tflocal to redirect Terraform to LocalStack.

Prerequisites

Check prerequisites

make check

Installation

make install

Start LocalStack

export LOCALSTACK_AUTH_TOKEN=<your-auth-token>
make start

Deploy the Application

make run

This initializes Terraform (if not already done) and runs terraform apply --auto-approve. You may need to confirm the creation by entering yes. You should see output similar to:

Plan: 10 to add, 0 to change, 0 to destroy.
aws_iam_role.invocation_role: Creating...
aws_api_gateway_rest_api.demo: Creating...
aws_iam_role.lambda: Creating...
aws_db_parameter_group.default: Creating...
aws_elasticache_cluster.my-redis: Creating...
aws_s3_bucket.test-bucket: Creating...
aws_api_gateway_rest_api.demo: Creation complete after 1s [id=iq0njx2s0a]
...
aws_elasticache_cluster.my-redis: Creation complete after 32s [id=my-redis-cluster]

Apply complete! Resources: 10 added, 0 changed, 0 destroyed.

License

This code is available under the Apache 2.0 license.