You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to grant with select permission on a database in an AlloyDB instance to an IAM Service Account user. The idea is to grant with this permission without login using postgres user and do it while we provision the resources (alloydb cluster,primary instance, Service Accounts,etc)
I'm getting an error message and I think it's because this provider is not yet available for AlloyDB.
module.gcp_alloydb.google_alloydb_cluster.cluster[0]: Modifications complete after 25s [id=projects/sbx-200827-data/locations/us-east1/clusters/sbx-200827-data-dave-cluster]
Error: Error connecting to PostgreSQL server (scheme: gcppostgres): ensure that the account has access to "instancename:5432" (and make sure there's no typo in that name). Error during generateEphemeral for instancename:5432: googleapi: Error 403: boss::NOT_AUTHORIZED: Not authorized to access resource. Possibly missing permission cloudsql.instances.connect on resource instances/sbx-226722-darch3-primary-instance1., forbidden
with postgresql_grant.readonly_tables,
on main.tf line 87, in resource "postgresql_grant" "readonly_tables":
87: resource "postgresql_grant" "readonly_tables" {
If you see the error refer to a cloudsql.instances.connect permission error when I'm trying to access an AlloyDB instance.
The text was updated successfully, but these errors were encountered:
Hi,
I'm trying to grant with select permission on a database in an AlloyDB instance to an IAM Service Account user. The idea is to grant with this permission without login using postgres user and do it while we provision the resources (alloydb cluster,primary instance, Service Accounts,etc)
I'm getting an error message and I think it's because this provider is not yet available for AlloyDB.
Code
Error message:
If you see the error refer to a cloudsql.instances.connect permission error when I'm trying to access an AlloyDB instance.
The text was updated successfully, but these errors were encountered: