terraform-google-modules / terraform-google-sql-db

Creates a Cloud SQL database instance
https://registry.terraform.io/modules/terraform-google-modules/sql-db/google
Apache License 2.0
265 stars 427 forks source link

fix!: Backup - set IAM conditions conditionally #616

Closed dominikmueller closed 3 months ago

dominikmueller commented 3 months ago

IAM conditions can only be used to restrict access to DatabaseInstances or BackupRuns. They can't be used to restrict access to Database resources.

The export workflow uses the googleapis.sqladmin.v1.databases.list call to gather all database names.

This call fails with the error code 403: unauthorized when the IAM conditions are set.

The client is not authorized to make this request.

image

Supported Resource Type Values in IAM Conditions: docs

imrannayer commented 3 months ago

/gcbrun