Skip to content

Latest commit

 

History

History
36 lines (25 loc) · 1.11 KB

README.md

File metadata and controls

36 lines (25 loc) · 1.11 KB

Terraform

This module sets up Kafka and PostgreSQL in Aiven. If you don't have an account you can sign up for 30 day trial and get free $300 credits. Credit card is not required for the trial.

Requirements

Usage

export TF_VAR_aiven_project_name="YOUR AIVEN PROJECT NAME"
export TF_VAR_aiven_api_token="YOUR_AIVEN_API_TOKEN"

terraform init
terraform apply

We need some secrets for the Kafka and PostgreSQL:

# Kafka
terraform output -raw kafka_access_key > kafka_access.key
terraform output -raw kafka_access_cert > kafka_access.cert
terraform output -raw kafka_service_uri > kafka_service_uri
terraform output -raw project_ca_cert > ca.pem

# PostgreSQL
terraform output -raw postgresql_service_uri > postgres_dburl

Links