sl-app
):
sl-instance
).sl-clu
).sl-app-sa
.sl-app-apikey
.sl-app-tenant
sl-app-ns
and grants produce
and consume
permissions to the Service Account on the namespace.sl-app-topic
.tf-runner
with Super Admin access. Please refer to Create a Service Account for details.
After you have created the service account, download the OAuth2 credentials file and save it as tf-runner.json
in the terraform-getting-started
folder that you created earlier.
streamnative_cloud
.
variables.tf
file inside the streamnative_cloud
folder and add the following code snippet to prepare the variables. Remember to replace <your-organization-id>
with your StreamNative Cloud organization id.
<your-organization-id>
with it.sl-instance
.sl-clu
.sl-app
.main.tf
file inside the streamnative_cloud
folder and add the following code snippet to create the resources.
0.7.0
or later.terraform-getting-started
.
variables.tf
file from the streamnative_cloud
module folder.
main.tf
file in the root folder and add the following code snippet to create the resources.
<your-org-id>
: Your StreamNative Cloud organization ID<your-instance-name>
: A unique name for your Pulsar instance (e.g., “sl-instance”)<your-cluster-name>
: A unique name for your Pulsar cluster (e.g., “sl-clu”)<your-app-name>
: A unique name for your application (e.g., “sl-app”)terraform plan
to see the changes and preview the resources that will be created.
terraform apply
to create the resources.
pulsarctl_command
output and run it in your terminal.
sl-clu
sl-app-tenant
sl-app-ns
sl-app-topic
produce
and consume
permissions are granted to sl-app-sa
on the namespace sl-app-tenant/sl-app-ns