You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
SSL Mode and Require Connectors Support for AlloyDB (#9238) (#16236)
* support to create instance with ssl mode and require connectors, with acceptance tests
* removed client_connection_config in basic instance example, and cleaned up the code a little bit
* attempts to set the default ssl mode in the custom code
* able to set default value during instance creation and addressing some comments
* trying to fix updating ssl mode
* fixed updating the instance with ssl mode
* cleaning up code and fixing acceptance tests
* Fixing spacing issues in instance.yaml
* fixing spacing issues again in instance.yaml
* fixing formatting in unit test
* fixing the acceptance tests for other alloydb resources by explicitly adding the clientconnectionconfig
* fixing spacing and removing commented out imports
* commenting out createInstanceWithMandatoryFields and createPrimaryAndReadPoolInstance tests because they're failing due to an unrelated service networking issue
* fix tests failing due to missing client_connection_config
* removing service networking resources from tests since there's a bug in service networking
* fix breaking change that causes a permadiff in terraform on update
* uncomment out the TestAccAlloydbInstance_createPrimaryAndReadPoolInstance and TestAccAlloydbInstance_createInstanceWithMandatoryFields tests
* remove private_ip_alloc from client connection config tests
* use BootstrapSharedServiceNetworkingConnection in tests instead of BootstrapSharedTestNetwork in tests
* add back in custom code
* remove commented out code
* fix formatting
* match network name to be the same format as the other acceptance tests in the file
* change network names in test
* remove custom code and update e2e test
* remove default test case and add more update steps to update test
[upstream:06557f8d065d1b096db68d8f8a817eba13c445ee]
Signed-off-by: Modular Magician <[email protected]>
Copy file name to clipboardExpand all lines: google/services/alloydb/resource_alloydb_instance.go
+142
Original file line number
Diff line number
Diff line change
@@ -97,6 +97,40 @@ Zone is automatically chosen from the list of zones in the region specified.
97
97
Read pool of size 1 can only have zonal availability. Read pools with node count of 2 or more
98
98
can have regional availability (nodes are present in 2 or more zones in a region).' Possible values: ["AVAILABILITY_TYPE_UNSPECIFIED", "ZONAL", "REGIONAL"]`,
99
99
},
100
+
"client_connection_config": {
101
+
Type: schema.TypeList,
102
+
Computed: true,
103
+
Optional: true,
104
+
Description: `Client connection specific configurations.`,
105
+
MaxItems: 1,
106
+
Elem: &schema.Resource{
107
+
Schema: map[string]*schema.Schema{
108
+
"require_connectors": {
109
+
Type: schema.TypeBool,
110
+
Optional: true,
111
+
Description: `Configuration to enforce connectors only (ex: AuthProxy) connections to the database.`,
112
+
},
113
+
"ssl_config": {
114
+
Type: schema.TypeList,
115
+
Computed: true,
116
+
Optional: true,
117
+
Description: `SSL config option for this instance.`,
0 commit comments