mirror of
https://github.com/opentofu/opentofu.git
synced 2024-12-30 10:47:14 -06:00
20 lines
322 B
Terraform
20 lines
322 B
Terraform
|
variable "users" {
|
||
|
default = {
|
||
|
one = "onepw"
|
||
|
two = "twopw"
|
||
|
}
|
||
|
}
|
||
|
|
||
|
provider "test" {
|
||
|
url = "example.com"
|
||
|
|
||
|
dynamic "auth" {
|
||
|
for_each = var.users
|
||
|
content {
|
||
|
user = auth.key
|
||
|
password = auth.value
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
|
||
|
resource "test_instance" "test" {}
|