diff --git a/third_party/terraform/resources/resource_composer_environment.go.erb b/third_party/terraform/resources/resource_composer_environment.go.erb index 2fffa1c4a8b9..e3c53929be71 100644 --- a/third_party/terraform/resources/resource_composer_environment.go.erb +++ b/third_party/terraform/resources/resource_composer_environment.go.erb @@ -252,8 +252,9 @@ func resourceComposerEnvironment() *schema.Resource { Schema: map[string]*schema.Schema{ "enable_private_endpoint": { Type: schema.TypeBool, - Required: true, + Optional: true, ForceNew: true, + Default: true, }, "master_ipv4_cidr_block": { Type: schema.TypeString, diff --git a/third_party/terraform/website/docs/r/composer_environment.html.markdown b/third_party/terraform/website/docs/r/composer_environment.html.markdown index 2c63d941ca50..55446e5d7e83 100644 --- a/third_party/terraform/website/docs/r/composer_environment.html.markdown +++ b/third_party/terraform/website/docs/r/composer_environment.html.markdown @@ -304,9 +304,10 @@ The `private_environment_config` block supports: The `ip_allocation_policy` block supports: -* `use_ap_aliases` - +* `use_ip_aliases` - (Optional) Whether or not to enable Alias IPs in the GKE cluster. If true, a VPC-native cluster is created. + Defaults to true if the `ip_allocation_block` is present in config. * `cluster_secondary_range_name` - (Optional)