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
-`external_address` (String) External Load Balancer IP address where this Load Balancer is exposed.
131
131
-`options` (Attributes) Defines any optional functionality you want to have enabled on your load balancer. (see [below for nested schema](#nestedatt--options))
132
132
-`region` (String) The resource region. If not defined, the provider region is used.
// private_network_only is not set and external_address is not set
259
+
if!externalAddressIsSet {
260
+
core.LogAndAddError(ctx, diags, "Error configuring load balancer", fmt.Sprintf("You need to provide either the `options.private_network_only = true` or `external_address` field. %v", err))
// private_network_only is not set or false and external_address is not set
266
+
if!externalAddressIsSet {
267
+
core.LogAndAddError(ctx, diags, "Error configuring load balancer", "You need to provide either the `options.private_network_only = true` or `external_address` field.")
core.LogAndAddError(ctx, diags, "Error configuring load balancer", "You need to provide either the `options.private_network_only = true` or `external_address` field.")
275
+
}
276
+
}
277
+
240
278
// Configure adds the provider configured client to the resource.
0 commit comments