-
Sign up for Confluent Cloud with your email.
-
Create a Confluent Cloud API Key
To solve the 🐥 🥚 problem, we need the initial API Key created manually that Terraform can leverage
- Open the Confluent Cloud Console and navigate to "API keys"
- Select "+ Add API key"
- To keep things simple, select "My account" to create a key that has all of your access permissions
- NOTE: In production, you would create a service account with specific permissions and generate the key from that
- Select "Cloud resource management" for your resource scope, click "Next"
- Enter Name: "Terraform API Key" and Description: "Used by Terraform to provision Cloud Resources", click "Create API key"
- Click "Download API Key" (you'll these this when provisioning the cluster)
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>"
First, provision your environments from the demo-infrastructure
repo (folder).
cd terraform/demo-infrastructure
terraform init
terraform apply
# approve after review, this may take a few minutes to complete- Confirm the Environments are created in your Confluent Cloud account
There is a python script that will produce all the product
data to the raw_products
topic.
End of environment setup, continue with Workshop.