Cluster

class Cluster : KotlinCustomResource

Provides a MSE Cluster resource. It is a one-stop microservice platform for the industry's mainstream open source microservice frameworks Spring Cloud and Dubbo, providing governance center, managed registry and managed configuration center.

NOTE: Available in 1.94.0+.

Example Usage

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.alicloud.AlicloudFunctions;
import com.pulumi.alicloud.inputs.GetZonesArgs;
import com.pulumi.alicloud.vpc.Network;
import com.pulumi.alicloud.vpc.NetworkArgs;
import com.pulumi.alicloud.vpc.Switch;
import com.pulumi.alicloud.vpc.SwitchArgs;
import com.pulumi.alicloud.mse.Cluster;
import com.pulumi.alicloud.mse.ClusterArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
final var exampleZones = AlicloudFunctions.getZones(GetZonesArgs.builder()
.availableResourceCreation("VSwitch")
.build());
var exampleNetwork = new Network("exampleNetwork", NetworkArgs.builder()
.vpcName("terraform-example")
.cidrBlock("172.17.3.0/24")
.build());
var exampleSwitch = new Switch("exampleSwitch", SwitchArgs.builder()
.vswitchName("terraform-example")
.cidrBlock("172.17.3.0/24")
.vpcId(exampleNetwork.id())
.zoneId(exampleZones.applyValue(getZonesResult -> getZonesResult.zones()[0].id()))
.build());
var exampleCluster = new Cluster("exampleCluster", ClusterArgs.builder()
.clusterSpecification("MSE_SC_1_2_60_c")
.clusterType("Nacos-Ans")
.clusterVersion("NACOS_2_0_0")
.instanceCount(1)
.netType("privatenet")
.pubNetworkFlow("1")
.connectionType("slb")
.clusterAliasName("terraform-example")
.mseVersion("mse_dev")
.vswitchId(exampleSwitch.id())
.vpcId(exampleNetwork.id())
.build());
}
}

Import

MSE Cluster can be imported using the id, e.g.

$ pulumi import alicloud:mse/cluster:Cluster example mse-cn-0d9xxxx

Properties

Link copied to clipboard
val aclEntryLists: Output<List<String>>?

The whitelist. NOTE: This attribute is invalid when the value of pub_network_flow is 0 and the value of net_type is privatenet.

Link copied to clipboard
val appVersion: Output<String>

(Available in v1.205.0+) The application version.

Link copied to clipboard
val clusterAliasName: Output<String>?

The alias of MSE Cluster.

Link copied to clipboard
val clusterId: Output<String>

(Available in v1.162.0+) The id of Cluster.

Link copied to clipboard

The engine specification of MSE Cluster. NOTE: From version 1.188.0, cluster_specification can be modified. Valid values:

Link copied to clipboard
val clusterType: Output<String>

The type of MSE Cluster.

Link copied to clipboard
val clusterVersion: Output<String>

The version of MSE Cluster. See details

Link copied to clipboard
val connectionType: Output<String>

The connection type. Valid values: slb.

Link copied to clipboard
val diskType: Output<String>?

The type of Disk.

Link copied to clipboard
val id: Output<String>
Link copied to clipboard
val instanceCount: Output<Int>

The count of instance. NOTE: From version 1.188.0, instance_count can be modified.

Link copied to clipboard
val mseVersion: Output<String>

The version of MSE. Valid values: mse_dev or mse_pro.

Link copied to clipboard
val netType: Output<String>

The type of network. Valid values: "privatenet" and "pubnet".

Link copied to clipboard

The specification of private network SLB.

Link copied to clipboard
val pubNetworkFlow: Output<String>

The public network bandwidth. 0 means no access to the public network.

Link copied to clipboard

The specification of public network SLB.

Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val requestPars: Output<String>?

The extended request parameters in the JSON format.

Link copied to clipboard
val status: Output<String>

The status of MSE Cluster.

Link copied to clipboard
val urn: Output<String>
Link copied to clipboard
val vpcId: Output<String>

The id of the VPC.

Link copied to clipboard
val vswitchId: Output<String>?

The id of VSwitch.