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

Datasource - google_sql_database_instances #5066

Conversation

modular-magician
Copy link
Collaborator

This PR is to create a new data source as request in the issue mentioned in hashicorp/terraform-provider-google#8164
Buganizer reference : (b/259913353): EXT: Datasource google_sql_database_instances

I have created a new data source called "google_sql_database_instance_list" which would fetch all the database instances in a project, and u can apply filters on top of it {project, database_version, region, zone, tier and state}.

I have tested this new data source with unit tests.

`google_sql_database_instances`

Derived from GoogleCloudPlatform/magic-modules#6980

* Added validation for "type" in cloud_sql_user_resource for preventing user from setting "password" or "host" for CLOUD_IAM_USER and CLOUD_IAM_SERVICE_ACCOUNT user types.

* Added new data_source_sql_database_instance_list data source and test file

* Added new data_source_sql_database_instance_list data source and test file

* Reverting validation of usert types, this would be added as a seperate PR

* Added documentation for the new google_sql_database_instances data source

* mend

* mend

* mend

* mend

* mend

Signed-off-by: Modular Magician <[email protected]>
@modular-magician modular-magician merged commit bed99f1 into hashicorp:main Jan 10, 2023
@modular-magician modular-magician deleted the downstream-pr-3f9409b5df7be27b02f4481c4ebf6a9879739f03 branch November 16, 2024 02:06
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.

1 participant