Skip to content

Commit

Permalink
Make all the examples code similar
Browse files Browse the repository at this point in the history
  • Loading branch information
multani committed Feb 6, 2024
1 parent c0e84a3 commit da992a5
Show file tree
Hide file tree
Showing 5 changed files with 146 additions and 19 deletions.
33 changes: 28 additions & 5 deletions examples/resources/camunda_cluster/provider.tf
Original file line number Diff line number Diff line change
@@ -1,8 +1,31 @@
variable "camunda_client_id" {}
variable "camunda_client_secret" {}
variable "camunda_api_url" {}
variable "camunda_audience" {}
variable "camunda_token_url" {}
variable "camunda_client_id" {
description = "The client ID to connect to the Console API"
type = string
}

variable "camunda_client_secret" {
description = "The client secret to connect to the Console API"
type = string
sensitive = true
}

variable "camunda_api_url" {
description = "The Console API URL"
default = "https://api.cloud.camunda.io"
type = string
}

variable "camunda_audience" {
description = "The audience to bind the authentication to"
default = "api.cloud.camunda.io"
type = string
}

variable "camunda_token_url" {
description = "The authentication URL to fetch a token from"
default = "https://login.cloud.camunda.io/oauth/token"
type = string
}

terraform {
required_providers {
Expand Down
33 changes: 31 additions & 2 deletions examples/resources/camunda_cluster_client/provider.tf
Original file line number Diff line number Diff line change
@@ -1,5 +1,31 @@
variable "camunda_client_id" {}
variable "camunda_client_secret" {}
variable "camunda_client_id" {
description = "The client ID to connect to the Console API"
type = string
}

variable "camunda_client_secret" {
description = "The client secret to connect to the Console API"
type = string
sensitive = true
}

variable "camunda_api_url" {
description = "The Console API URL"
default = "https://api.cloud.camunda.io"
type = string
}

variable "camunda_audience" {
description = "The audience to bind the authentication to"
default = "api.cloud.camunda.io"
type = string
}

variable "camunda_token_url" {
description = "The authentication URL to fetch a token from"
default = "https://login.cloud.camunda.io/oauth/token"
type = string
}

terraform {
required_providers {
Expand All @@ -10,6 +36,9 @@ terraform {
}

provider "camunda" {
api_url = var.camunda_api_url
audience = var.camunda_audience
client_id = var.camunda_client_id
client_secret = var.camunda_client_secret
token_url = var.camunda_token_url
}
33 changes: 31 additions & 2 deletions examples/resources/camunda_cluster_connector_secret/provider.tf
Original file line number Diff line number Diff line change
@@ -1,5 +1,31 @@
variable "camunda_client_id" {}
variable "camunda_client_secret" {}
variable "camunda_client_id" {
description = "The client ID to connect to the Console API"
type = string
}

variable "camunda_client_secret" {
description = "The client secret to connect to the Console API"
type = string
sensitive = true
}

variable "camunda_api_url" {
description = "The Console API URL"
default = "https://api.cloud.camunda.io"
type = string
}

variable "camunda_audience" {
description = "The audience to bind the authentication to"
default = "api.cloud.camunda.io"
type = string
}

variable "camunda_token_url" {
description = "The authentication URL to fetch a token from"
default = "https://login.cloud.camunda.io/oauth/token"
type = string
}

terraform {
required_providers {
Expand All @@ -10,6 +36,9 @@ terraform {
}

provider "camunda" {
api_url = var.camunda_api_url
audience = var.camunda_audience
client_id = var.camunda_client_id
client_secret = var.camunda_client_secret
token_url = var.camunda_token_url
}
33 changes: 28 additions & 5 deletions examples/resources/camunda_cluster_ip_whitelist/provider.tf
Original file line number Diff line number Diff line change
@@ -1,8 +1,31 @@
variable "camunda_client_id" {}
variable "camunda_client_secret" {}
variable "camunda_api_url" {}
variable "camunda_audience" {}
variable "camunda_token_url" {}
variable "camunda_client_id" {
description = "The client ID to connect to the Console API"
type = string
}

variable "camunda_client_secret" {
description = "The client secret to connect to the Console API"
type = string
sensitive = true
}

variable "camunda_api_url" {
description = "The Console API URL"
default = "https://api.cloud.camunda.io"
type = string
}

variable "camunda_audience" {
description = "The audience to bind the authentication to"
default = "api.cloud.camunda.io"
type = string
}

variable "camunda_token_url" {
description = "The authentication URL to fetch a token from"
default = "https://login.cloud.camunda.io/oauth/token"
type = string
}

terraform {
required_providers {
Expand Down
33 changes: 28 additions & 5 deletions examples/resources/camunda_organization_member/provider.tf
Original file line number Diff line number Diff line change
@@ -1,8 +1,31 @@
variable "camunda_client_id" {}
variable "camunda_client_secret" {}
variable "camunda_api_url" {}
variable "camunda_audience" {}
variable "camunda_token_url" {}
variable "camunda_client_id" {
description = "The client ID to connect to the Console API"
type = string
}

variable "camunda_client_secret" {
description = "The client secret to connect to the Console API"
type = string
sensitive = true
}

variable "camunda_api_url" {
description = "The Console API URL"
default = "https://api.cloud.camunda.io"
type = string
}

variable "camunda_audience" {
description = "The audience to bind the authentication to"
default = "api.cloud.camunda.io"
type = string
}

variable "camunda_token_url" {
description = "The authentication URL to fetch a token from"
default = "https://login.cloud.camunda.io/oauth/token"
type = string
}

terraform {
required_providers {
Expand Down

0 comments on commit da992a5

Please sign in to comment.