Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat!: Add enable_google_ml_integration setting for database instance and configurable project roles for default database service account #615

Conversation

q2w
Copy link
Collaborator

@q2w q2w commented Jul 9, 2024

This PR makes below changes,

  1. Add enable_google_ml_integration setting for database instance. https://registry.terraform.io/providers/hashicorp/google/latest/docs/resources/sql_database_instance#enable_google_ml_integration
  2. Configurable project roles for default database service account. The default database service account is created for each database instance. To enable database to call ML functions from VertexAI etc, the service account needs suitable project roles.

This feature has been used in "Gen AI rag with cloud sql" https://github.com/GoogleCloudPlatform/terraform-genai-rag/blob/main/database.tf#L32

@bharathkkb
Copy link
Member

/gcbrun

Copy link
Member

@bharathkkb bharathkkb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM with one request

modules/postgresql/main.tf Show resolved Hide resolved
@bharathkkb bharathkkb changed the title feat: Add enable_google_ml_integration setting for database instance and configurable project roles for default database service account feat!: Add enable_google_ml_integration setting for database instance and configurable project roles for default database service account Jul 10, 2024
@q2w q2w marked this pull request as ready for review July 10, 2024 05:55
@q2w q2w requested review from isaurabhuttam, imrannayer and a team as code owners July 10, 2024 05:55
@q2w q2w force-pushed the feature/postgresql_ml_integration branch from cae940d to a1ea3d4 Compare July 10, 2024 05:57
@bharathkkb
Copy link
Member

/gcbrun

@bharathkkb bharathkkb enabled auto-merge (squash) July 10, 2024 23:40
@imrannayer
Copy link
Collaborator

/gcbrun

1 similar comment
@bharathkkb
Copy link
Member

/gcbrun

@bharathkkb bharathkkb merged commit 83bbaa3 into terraform-google-modules:master Jul 14, 2024
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants