mirror of
https://github.com/hasura/graphql-engine.git
synced 2024-12-15 09:22:43 +03:00
a0dc296ede
We sometimes need to test against cloud databases. Here, we add a Terraform module to start a new AlloyDB cluster and instance, which we can then use for testing purposes. PR-URL: https://github.com/hasura/graphql-engine-mono/pull/7002 GitOrigin-RevId: 2d661b5cc6d60e47485ea68b781e13426ed4f097
17 lines
509 B
HCL
17 lines
509 B
HCL
# The service account is used by the bastion instance.
|
|
# It grants the relevant privileges for connecting to AlloyDB as a client.
|
|
|
|
resource "google_service_account" "service_account" {
|
|
account_id = "${var.name}-testing-alloydb"
|
|
display_name = "Testing AlloyDB for ${var.name}"
|
|
}
|
|
|
|
resource "google_project_iam_binding" "service_account_alloydb_client" {
|
|
project = data.google_project.project.id
|
|
role = "roles/alloydb.client"
|
|
|
|
members = [
|
|
google_service_account.service_account.member,
|
|
]
|
|
}
|