Terraform-provider-google: BigQuery connection resource

Created on 29 Jan 2020  路  4Comments  路  Source: hashicorp/terraform-provider-google


Community Note

  • Please vote on this issue by adding a 馃憤 reaction to the original issue to help the community and maintainers prioritize this request
  • Please do not leave "+1" or "me too" comments, they generate extra noise for issue followers and do not help prioritize the request
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment. If the issue is assigned to the "modular-magician" user, it is either in the process of being autogenerated, or is planned to be autogenerated soon. If the issue is assigned to a user, that user is claiming responsibility for the issue. If the issue is assigned to "hashibot", a community member has claimed the issue already.

Description

Support bigquery connections for federation with cloud sql.

New or Affected Resource(s)

  • google_bigquery_connection (new resource)

Potential Terraform Configuration

resource "google_bigquery_connection" "my_federation" {
  connection_type = "CLOUD_SQL"
  instance_id = var.my_cloud_sql_instance_id
  ...
}

References

enhancement new-resource sizM

Most helpful comment

Also perhaps missing is a way to create connection credentials as the Connection object doesn't include a way to set a username and password.

All 4 comments

Hey @jmcarp, the BigQuery API defines this resource as a "transfer config", so that's what we've named the Terraform resource: https://www.terraform.io/docs/providers/google/r/bigquery_data_transfer_config.html. I'm going to go ahead and close this since as far as I can tell it's already done (馃帀 ) but if there's more that I'm missing we can certainly reopen it and take another look.

Thanks @danawillow. It looks like query federation uses the bigqueryconnection API, not the bigquerydatatransfer API. Documentation is at https://cloud.google.com/bigquery/docs/reference/bigqueryconnection/rest/. I don't see a way to set up Cloud SQL federation with the transfer config resource. Am I missing something?

Nope, I think you're right! The GCP docs were misleading in this case. Reopening.

Also perhaps missing is a way to create connection credentials as the Connection object doesn't include a way to set a username and password.

Was this page helpful?
0 / 5 - 0 ratings