diff --git a/docs/resources/cluster_aws.md b/docs/resources/cluster_aws.md index 40731de3..e310f16f 100644 --- a/docs/resources/cluster_aws.md +++ b/docs/resources/cluster_aws.md @@ -166,6 +166,7 @@ Required: Optional: +- `control_plane_lb` (String) Control plane load balancer type. Valid values are `Internet-facing` and `internal`. Defaults to `` (empty string). - `vpc_id` (String) diff --git a/docs/resources/virtual_cluster.md b/docs/resources/virtual_cluster.md index 7ec4bbb0..eca48d19 100644 --- a/docs/resources/virtual_cluster.md +++ b/docs/resources/virtual_cluster.md @@ -62,6 +62,7 @@ resource "spectrocloud_virtual_cluster" "cluster" { - `cluster_group_uid` (String) - `cluster_profile` (Block List) (see [below for nested schema](#nestedblock--cluster_profile)) - `cluster_rbac_binding` (Block List) (see [below for nested schema](#nestedblock--cluster_rbac_binding)) +- `context` (String) - `force_delete` (Boolean) If set to `true`, the cluster will be force deleted and user has to manually clean up the provisioned cloud resources. - `force_delete_delay` (Number) Delay duration in minutes to before invoking cluster force delete. Default and minimum is 20. - `host_cluster_uid` (String) diff --git a/spectrocloud/resource_cluster_aws.go b/spectrocloud/resource_cluster_aws.go index 19abd987..ae96e618 100644 --- a/spectrocloud/resource_cluster_aws.go +++ b/spectrocloud/resource_cluster_aws.go @@ -120,6 +120,14 @@ func resourceClusterAws() *schema.Resource { ForceNew: true, Optional: true, }, + "control_plane_lb": { + Type: schema.TypeString, + ForceNew: true, + Default: "", + Optional: true, + ValidateFunc: validation.StringInSlice([]string{"", "Internet-facing", "internal"}, false), + Description: "Control plane load balancer type. Valid values are `Internet-facing` and `internal`. Defaults to `` (empty string).", + }, }, }, }, @@ -512,9 +520,10 @@ func toAwsCluster(c *client.V1Client, d *schema.ResourceData) (*models.V1Spectro Profiles: profiles, Policies: toPolicies(d), CloudConfig: &models.V1AwsClusterConfig{ - SSHKeyName: cloudConfig["ssh_key_name"].(string), - Region: types.Ptr(cloudConfig["region"].(string)), - VpcID: cloudConfig["vpc_id"].(string), + SSHKeyName: cloudConfig["ssh_key_name"].(string), + Region: types.Ptr(cloudConfig["region"].(string)), + VpcID: cloudConfig["vpc_id"].(string), + ControlPlaneLoadBalancer: cloudConfig["control_plane_lb"].(string), }, }, }