Skip to content
This repository has been archived by the owner on Mar 15, 2024. It is now read-only.

Fixed error when modifying VPC Cluster configuration #18

Closed
wants to merge 2 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions provider/resource_couchbasecapella_vpc_cluster.go
Original file line number Diff line number Diff line change
Expand Up @@ -70,12 +70,14 @@ func resourceCouchbaseCapellaVpcCluster() *schema.Resource {
Type: schema.TypeInt,
Description: "Number of nodes",
Required: true,
ForceNew: true,
ValidateFunc: validateSize,
},
"services": {
Type: schema.TypeList,
Description: "Couchbase Services",
Required: true,
ForceNew: true,
MinItems: 1,
Elem: &schema.Schema{
Type: schema.TypeString,
Expand All @@ -86,18 +88,21 @@ func resourceCouchbaseCapellaVpcCluster() *schema.Resource {
Description: "Aws configuration",
Type: schema.TypeSet,
Optional: true,
ForceNew: true,
Elem: &schema.Resource{
Schema: map[string]*schema.Schema{
"instance_size": {
Description: "Aws instance",
Type: schema.TypeString,
Required: true,
ForceNew: true,
ValidateFunc: validateAwsInstance,
},
"ebs_size_gib": {
Description: "Aws volume size (Gb)",
Type: schema.TypeInt,
Required: true,
ForceNew: true,
ValidateFunc: validateAwsVolumeSize,
},
},
Expand All @@ -107,18 +112,21 @@ func resourceCouchbaseCapellaVpcCluster() *schema.Resource {
Description: "Azure configuration",
Type: schema.TypeSet,
Optional: true,
ForceNew: true,
Elem: &schema.Resource{
Schema: map[string]*schema.Schema{
"instance_size": {
Description: "Azure instance",
Type: schema.TypeString,
Required: true,
ForceNew: true,
ValidateFunc: validateAzureInstance,
},
"volume_type": {
Description: "Azure volume size (Gb)",
Type: schema.TypeString,
Required: true,
ForceNew: true,
ValidateFunc: validateAzureVolume,
},
},
Expand Down