generated from hashicorp/terraform-provider-scaffolding
-
Notifications
You must be signed in to change notification settings - Fork 21
Open
Description
Hi,
Great provider ! I'm really missing to be able to specify the url in the ressource.
Basically I want to be able to do something like this:
locals {
data = {
"DB_A" = {
"url" = "sql url goes here"
"up_script" = "a/b/up.sql"
"down_script" = "a/b/down.sql"
}
"DB_B" = {
"url" = "sql url goes here"
"up_script" = "a/b/up.sql"
"down_script" = "a/b/down.sql"
}
}
}
resource "sql_migrate" "schema" {
for_each = local.data
url = each.value.url
migration {
up = each.value.sql_up
down = each.value.sql_down
}
}
Thanks in advance :)
brxck, asvinours, ceilingfish, jamiefiedler, esalter and 1 moreei-grad
Metadata
Metadata
Assignees
Labels
No labels