Skip to content

Commit

Permalink
Update example
Browse files Browse the repository at this point in the history
  • Loading branch information
tuteng committed Nov 30, 2024
1 parent fd8d459 commit 6de57fb
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions examples/serverless/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -54,13 +54,17 @@ resource "streamnative_pulsar_cluster" "test-serverless" {
display_name = "test-serverless"
instance_name = streamnative_pulsar_instance.test-serverless.name
location = "us-east-2"
release_channel = "rapid"
}

locals {
depends_on = [streamnative_pulsar_cluster.test-serverless]
nsCluster = split("/", streamnative_pulsar_cluster.test-serverless.id)
}

data "streamnative_pulsar_cluster" "test-serverless" {
depends_on = [streamnative_pulsar_cluster.test-serverless]
organization = streamnative_pulsar_cluster.test-serverless.organization
name = streamnative_pulsar_cluster.test-serverless.name
name = local.nsCluster[1]
}

output "pulsar_cluster_serverless" {
Expand Down

0 comments on commit 6de57fb

Please sign in to comment.