Skip to content

Commit

Permalink
update examples
Browse files Browse the repository at this point in the history
Signed-off-by: Liang Huang <[email protected]>
  • Loading branch information
yellow-shine committed Mar 7, 2024
1 parent 9dcdcc1 commit 21e5e69
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
8 changes: 4 additions & 4 deletions examples/data-sources/zilliz_projects/data-source.tf
Original file line number Diff line number Diff line change
Expand Up @@ -12,17 +12,17 @@ provider "zilliz" {
}

// default project
data "zilliz_projects" "example01" {}
data "zilliz_project" "example01" {}

// specific project
data "zilliz_projects" "example02" {
data "zilliz_project" "example02" {
name = "payments"
}

output "output_01" {
value = data.zilliz_projects.example01.projects
value = data.zilliz_project.example01
}

output "output_02" {
value = data.zilliz_projects.example02.projects
value = data.zilliz_project.example02
}
6 changes: 3 additions & 3 deletions examples/resources/zilliz_cluster/resource.tf
Original file line number Diff line number Diff line change
Expand Up @@ -11,18 +11,18 @@ provider "zilliz" {
cloud_region_id = "gcp-us-west1"
}

data "zilliz_projects" "default" {
data "zilliz_project" "default" {
}

resource "zilliz_cluster" "standard_plan_cluster" {
plan = "Standard"
cluster_name = "Cluster-01"
cu_size = "1"
cu_type = "Performance-optimized"
project_id = data.zilliz_projects.default.projects[0].project_id
project_id = data.zilliz_project.default.id
}

resource "zilliz_cluster" "serverless_cluster" {
cluster_name = "Cluster-02"
project_id = data.zilliz_projects.default.projects[0].project_id
project_id = data.zilliz_project.default.id
}

0 comments on commit 21e5e69

Please sign in to comment.