Skip to content

Commit

Permalink
Created a simple example of how to spin up Malka
Browse files Browse the repository at this point in the history
  • Loading branch information
miere committed Apr 1, 2021
1 parent 68bed65 commit 9f1e163
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,6 @@

# Cargo
target

# Terraform
.terraform
33 changes: 33 additions & 0 deletions example/main.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# Configure AWS provider
provider "aws" {
version = "~> 2.0"
region = "us-east-1"
}

# Fetch minimal data from your AWS services
data "aws_vpc" "default" {
default = true
}

data "aws_subnet_ids" "default" {
vpc_id = data.aws_vpc.default.id
}

# Configure Malka
module "malka" {
source = "github.com/miere/malka-terraform-module?ref=v0.1.0"

configuration = [{
topic_name = "topic",
topic_number_of_consumers = 2,
consumer_configuration = {},
target_functions = ["appetifyMailEngine"]
}]

kafka_brokers = ["localhost:9021"]

region = "us-east-1"

subnet_ids = data.aws_subnet_ids.default.ids
vpc_id = data.aws_vpc.default.id
}
Empty file removed infrastructure/main.tf
Empty file.

0 comments on commit 9f1e163

Please sign in to comment.