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 #13433

Conversation

modular-magician
Copy link
Collaborator

This PR is to create a new data source as request in the issue mentioned in #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 <magic-modules@google.com>
@modular-magician modular-magician merged commit b941552 into hashicorp:main Jan 10, 2023
@github-actions
Copy link

I'm going to lock this pull request because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.
If you have found a problem that seems related to this change, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 10, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant