generated from hashicorp/terraform-provider-scaffolding-framework
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Used variables to run examples (#124)
This makes it easier to test the examples in different environments, where generation, plan types, etc. may be different.
- Loading branch information
Showing
8 changed files
with
133 additions
and
127 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,32 @@ | ||
# The channel containing the most recent version of Zeebe. | ||
data "camunda_channel" "alpha" { | ||
name = "Alpha" | ||
variable "camunda_cluster_plan_type" { | ||
description = "The Camunda SaaS cluster plan type to use" | ||
default = "Trial" | ||
type = string | ||
} | ||
|
||
# A cluster plan type for default trials. | ||
data "camunda_cluster_plan_type" "trial" { | ||
name = "Trial Cluster" | ||
variable "camunda_region" { | ||
description = "The Camunda SaaS region in which to create the cluster" | ||
default = "Belgium, Europe (europe-west1)" | ||
type = string | ||
} | ||
|
||
# An available region | ||
data "camunda_region" "europe" { | ||
name = "Belgium, Europe (europe-west1)" | ||
data "camunda_channel" "this" { | ||
name = "Stable" | ||
} | ||
|
||
data "camunda_cluster_plan_type" "this" { | ||
name = var.camunda_cluster_plan_type | ||
} | ||
|
||
data "camunda_region" "this" { | ||
name = var.camunda_region | ||
} | ||
|
||
resource "camunda_cluster" "test" { | ||
name = "test" | ||
|
||
channel = data.camunda_channel.alpha.id | ||
generation = data.camunda_channel.alpha.default_generation_id | ||
region = data.camunda_region.europe.id | ||
plan_type = data.camunda_cluster_plan_type.trial.id | ||
channel = data.camunda_channel.this.id | ||
generation = data.camunda_channel.this.default_generation_id | ||
region = data.camunda_region.this.id | ||
plan_type = data.camunda_cluster_plan_type.this.id | ||
} |
24 changes: 0 additions & 24 deletions
24
examples/resources/camunda_cluster_client/.terraform.lock.hcl
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,32 @@ | ||
# The channel containing the most recent version of Zeebe. | ||
data "camunda_channel" "alpha" { | ||
name = "Alpha" | ||
variable "camunda_cluster_plan_type" { | ||
description = "The Camunda SaaS cluster plan type to use" | ||
default = "Trial" | ||
type = string | ||
} | ||
|
||
# A cluster plan type for default trials. | ||
data "camunda_cluster_plan_type" "trial" { | ||
name = "Trial Cluster" | ||
variable "camunda_region" { | ||
description = "The Camunda SaaS region in which to create the cluster" | ||
default = "Belgium, Europe (europe-west1)" | ||
type = string | ||
} | ||
|
||
# An available region | ||
data "camunda_region" "trial" { | ||
name = "Belgium, Europe (europe-west1)" | ||
data "camunda_channel" "this" { | ||
name = "Stable" | ||
} | ||
|
||
data "camunda_cluster_plan_type" "this" { | ||
name = var.camunda_cluster_plan_type | ||
} | ||
|
||
data "camunda_region" "this" { | ||
name = var.camunda_region | ||
} | ||
|
||
resource "camunda_cluster" "test" { | ||
name = "test" | ||
|
||
channel = data.camunda_channel.alpha.id | ||
generation = data.camunda_channel.alpha.default_generation_id | ||
region = data.camunda_region.trial.id | ||
plan_type = data.camunda_cluster_plan_type.trial.id | ||
channel = data.camunda_channel.this.id | ||
generation = data.camunda_channel.this.default_generation_id | ||
region = data.camunda_region.this.id | ||
plan_type = data.camunda_cluster_plan_type.this.id | ||
} |
37 changes: 23 additions & 14 deletions
37
examples/resources/camunda_cluster_connector_secret/cluster.tf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,32 @@ | ||
# The channel containing the most recent version of Zeebe. | ||
data "camunda_channel" "alpha" { | ||
name = "Alpha" | ||
variable "camunda_cluster_plan_type" { | ||
description = "The Camunda SaaS cluster plan type to use" | ||
default = "Trial" | ||
type = string | ||
} | ||
|
||
# A cluster plan type for default trials. | ||
data "camunda_cluster_plan_type" "trial" { | ||
name = "Trial Cluster" | ||
variable "camunda_region" { | ||
description = "The Camunda SaaS region in which to create the cluster" | ||
default = "Belgium, Europe (europe-west1)" | ||
type = string | ||
} | ||
|
||
# An available region | ||
data "camunda_region" "trial" { | ||
name = "Belgium, Europe (europe-west1)" | ||
data "camunda_channel" "this" { | ||
name = "Stable" | ||
} | ||
|
||
data "camunda_cluster_plan_type" "this" { | ||
name = var.camunda_cluster_plan_type | ||
} | ||
|
||
data "camunda_region" "this" { | ||
name = var.camunda_region | ||
} | ||
|
||
resource "camunda_cluster" "test" { | ||
name = "test2" | ||
name = "test" | ||
|
||
channel = data.camunda_channel.alpha.id | ||
generation = data.camunda_channel.alpha.default_generation_id | ||
region = data.camunda_region.trial.id | ||
plan_type = data.camunda_cluster_plan_type.trial.id | ||
channel = data.camunda_channel.this.id | ||
generation = data.camunda_channel.this.default_generation_id | ||
region = data.camunda_region.this.id | ||
plan_type = data.camunda_cluster_plan_type.this.id | ||
} |
24 changes: 0 additions & 24 deletions
24
examples/resources/camunda_cluster_ip_whitelist/.terraform.lock.hcl
This file was deleted.
Oops, something went wrong.
35 changes: 22 additions & 13 deletions
35
examples/resources/camunda_cluster_ip_whitelist/resource.tf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters