From db70484a40e5499a7c0d1c27f09f02c2dc98a479 Mon Sep 17 00:00:00 2001 From: Saketh kappala <43525626+sappusaketh@users.noreply.github.com> Date: Wed, 13 Mar 2024 12:46:17 -0700 Subject: [PATCH] Update TF Website docs Signed-off-by: Saketh kappala <43525626+sappusaketh@users.noreply.github.com> --- website/docs/index.html.markdown | 43 ++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) diff --git a/website/docs/index.html.markdown b/website/docs/index.html.markdown index dcdbfb64..663d8441 100644 --- a/website/docs/index.html.markdown +++ b/website/docs/index.html.markdown @@ -24,6 +24,49 @@ provider "kafka" { } ``` +Example provider with TLS client authentication. +```hcl +provider "kafka" { + bootstrap_servers = ["localhost:9092"] + ca_cert = file("../secrets/ca.crt") + client_cert = file("../secrets/terraform-cert.pem") + client_key = file("../secrets/terraform.pem") + tls_enabled = true +} +``` + +Example provider with aws-iam(Assume role) client authentication. +```hcl +provider "kafka" { + bootstrap_servers = ["localhost:9098"] + tls_enabled = true + sasl_mechanism = "aws-iam" + sasl_aws_region = "us-east-1" + sasl_aws_role_arn = "arn:aws:iam::account:role/role-name" +} +``` + +Example provider with aws-iam(Aws Profile) client authentication. +```hcl +provider "kafka" { + bootstrap_servers = ["localhost:9098"] + tls_enabled = true + sasl_mechanism = "aws-iam" + sasl_aws_region = "us-east-1" + sasl_aws_profile = "dev" +} +``` + +Example provider with aws-iam(Static Creds) client authentication. You have to export `AWS_ACCESS_KEY_ID`, `AWS_SECRET_ACCESS_KEY`, `AWS_SESSION_TOKEN`(Optional if you are using temp creds) +```hcl +provider "kafka" { + bootstrap_servers = ["localhost:9098"] + tls_enabled = true + sasl_mechanism = "aws-iam" + sasl_aws_region = "us-east-1" +} +``` + ## Argument Reference In addition to [generic `provider` arguments](https://www.terraform.io/docs/configuration/providers.html)