Convert connection pool username field to optional
The API allows pools to be created with no pool-specific username specified.
This switches the field on the aiven_connection_pool resource similarly
and allows to reuse the incoming user by not specifying a username,
which matches behavior of the UI.
Depends on changes top aiven-go-client via
@@ -52,7 +52,7 @@ var aivenConnectionPoolSchema = map[string]*schema.Schema{
},
"username": {
Type: schema.TypeString,
- Required: true,
+ Optional: true,
Description: "Name of the service user used to connect to the database",
},
"connection_uri": {
