Skip to content

Latest commit

 

History

History
53 lines (35 loc) · 2.69 KB

README.md

File metadata and controls

53 lines (35 loc) · 2.69 KB

Table of Contents

  1. Prerequisites
  2. Getting Started
  3. Provision Confluent Cloud Infrastructure

Prerequisites

  1. Sign up for Confluent Cloud with your email.

  2. Create a Confluent Cloud API Key

    To solve the 🐥 🥚 problem, we need the initial API Key created manually that Terraform can leverage

    1. Open the Confluent Cloud Console and navigate to "API keys"
    2. Select "+ Add API key"
    3. To keep things simple, select "My account" to create a key that has all of your access permissions
      1. NOTE: In production, you would create a service account with specific permissions and generate the key from that
    4. Select "Cloud resource management" for your resource scope, click "Next"
    5. Enter Name: "Terraform API Key" and Description: "Used by Terraform to provision Cloud Resources", click "Create API key"
    6. Click "Download API Key" (you'll these this when provisioning the cluster)
  3. Install Terraform CLI

Getting Started

The Confluent Terraform Provider needs your Confluent Cloud API Key/Secret to connect to the Organization you provisioned in the prereqs.

There are two Terraform variables for these --> confluent_cloud_api_key && confluent_cloud_api_secret

When running terraform plan/apply, Terraform will prompt you for any variables that aren't set via defaults or environment variables.

To avoid the repetitive prompt, copy, paste game - set the environment variables below and Terraform will leverage them on each run.

export TF_VAR_confluent_cloud_api_key="<cloud_api_key>"
export TF_VAR_confluent_cloud_api_secret="<cloud_api_secret>"

Provisioning Confluent Cloud Infrastructure

First, provision your environments from the demo-infrastructure repo (folder).

  1. cd terraform/demo-infrastructure
  2. terraform init
  3. terraform apply # approve after review, this may take a few minutes to complete
  4. Confirm the Environments are created in your Confluent Cloud account

Produce Sample Product Data

There is a python script that will produce all the product data to the raw_products topic.


End of environment setup, continue with Workshop.