Announcing Redis as a Code! Lambda Store Terraform Provider

By Rafael Nunes

Rafael Nunes

2 months ago we have launched first Serverless Redis and made announcement. After launching our product, we got incredibly huge interest and user feedback from different platforms. In hackernews, lambda store post was trend topic for a while. We have collected all user feedbacks from different platforms and realised that the community is asking for developer api and automation tools. Last month we have released our developer api.

Today, we are going to announce our terraform provider and I will show you how to create a Serverless Redis database in 2 seconds in terraform.

Generate API Key

Lambda Store terraform provider uses our developer API. It requires developer API key in order to reach lambda store api. You can create API key from lambda console.

Full API docs can be found here.

Install Lambda Store Terraform Provider

You can download binary provider from github repo or you can build from the source code. After you have binary executable you can follow terraform provider installation steps from official doc.

Create Serverless Redis Database Using Terraform

Terraform provider can be configured as following:

provider "lambdastore" {
email = ""
api_key = ""

Database resource can be created as following:

resource "lambdastore_database" "mydb" {  
database_name = "testdblstr"
region = "eu-west-1"
type = "free"

Output the database credentials:

output "endpoint" {  
value = "${lambdastore_database.mydb.endpoint}"
output "port" {
value = "${lambdastore_database.mydb.port}"
output "password" {
value = "${lambdastore_database.mydb.password}"

That’s all, now you can execute terraform plan and terraform apply commands. Then your database will be created. You can find example terraform file here.


Finally, we have published our lambda store API and terraform provider. Now developers can create their database using terraform or any automation tools they like. As a next step, we are planning to integrate lambda store to different automation tools and give more use-case examples. Also we are looking forward for your feedbacks and comments!

source code: