-
Notifications
You must be signed in to change notification settings - Fork 137
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(pci cloud db) - add ovh_cloud_project_database_postgresql_connection_pool resource & … #514
feat(pci cloud db) - add ovh_cloud_project_database_postgresql_connection_pool resource & … #514
Conversation
…data + doc + acceptance tests for these
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for your contribution.
LGTM in general.
Only some comment to simplify code and remove unused parameters
Thanks for your review Ludwig, suggestions applied there |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Apart from the style comments, OK to merge
ovh/resource_cloud_project_database_postgresql_connection_pool.go
Outdated
Show resolved
Hide resolved
ovh/resource_cloud_project_database_postgresql_connection_pool.go
Outdated
Show resolved
Hide resolved
ovh/types_cloud_project_database.go
Outdated
serviceName := d.Get("service_name").(string) | ||
clusterId := d.Get("cluster_id").(string) | ||
|
||
endpoint := fmt.Sprintf("/cloud/project/%s/database/%s/%s/connectionPool", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
endpoint := fmt.Sprintf("/cloud/project/%s/database/%s/%s/connectionPool", | |
endpoint := fmt.Sprintf("/cloud/project/%s/database/postgresql/%s/connectionPool", |
no need to insert this dynamically
Description
This adds a new add
ovh_cloud_project_database_postgresql_connection_pool
resource & datasource to manage Public Cloud Databases postgresql connection poolsIt relies on
/cloud/project/{serviceName}/database/postgresql/{clusterId}/connectionPool/*
APIV6 routes:Type of change
How Has This Been Tested?
Test Configuration:
terraform version
: Terraform v1.2.9Creating a database in a Postgresql 15 database cluster, then a user for it & a connection pool for that user so he can access this database
Checklist: