Other: Terraform data block
Not plannedHi would it be possible to be able to use look up connectors using the connector name, rather than the ID, this would allow config as code to be more streamlined for multiple environments e.g.
Current
# Where my connectors are called dev_my_connector and prod_my_connector
data "fivetran_connection" "dev_my_connector" {
data "fivetran_connection" "dev_my_connector" {
id="random_id_1"
}
data "fivetran_connection" "prod_my_connector" {
id="random_id_2"
}
proposed
data "fivetran_connection" "my_connector" {
name="${var.env}_my_connector"
}
So it can be one block and managed between environments with just an var.env variable. I know for native connectors you could just reference the ID property of the resource, but for custom connectors where the connector needs to be imported to have any kind of IAC control, the IDs would need to be fetched manaully from the console or persisted at the time of creation somewhere they could be read from at a later time such as AWS parameter store
-
Official commentHi Sam, thanks for the idea! While it’s not currently planned, we’ll keep an eye on this and track interest via votes and comments. Please continue to share your use cases.
Please sign in to leave a comment.
Comments
1 comment