Created
December 16, 2020 18:42
-
-
Save pathcl/bd0d6cd49846bbd3d95a23fc5303804f to your computer and use it in GitHub Desktop.
test.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
provider "rabbitmq" { | |
endpoint = "https://someotherendpoint" | |
alias = "lab" | |
username = var.rabbit_username | |
password = var.rabbit_password | |
insecure = true | |
} | |
provider "rabbitmq" { | |
endpoint = "https://someendpoint" | |
alias = "dev" | |
username = var.rabbit_username | |
password = var.rabbit_password | |
insecure = true | |
} | |
variable "rabbit_username" { | |
description = "rabbit username" | |
type = string | |
} | |
variable "rabbit_password" { | |
description = "rabbit password" | |
type = string | |
} | |
variable "rabbit_cluster" { | |
description = "List of rabbitmq clusters we want to interact with" | |
type = list(string) | |
default = ["dev", "lab"] | |
} | |
resource "rabbitmq_shovel" "someshovel" { | |
count = length(var.rabbit_cluster) | |
name = "test" | |
/* this value needs to be interpolated somehow */ | |
provider = rabbitmq.dev | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment