published on Friday, Jul 17, 2026 by tencentcloudstack
published on Friday, Jul 17, 2026 by tencentcloudstack
Provides a resource to create a DBDC db custom cluster.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as tencentcloud from "@pulumi/tencentcloud";
const example = new tencentcloud.DbdcDbCustomCluster("example", {
clusterName: "tf-example",
clusterDescription: "cluster description.",
containerNetwork: {
vpcId: "vpc-py7mlxqm",
subnetIds: [
"subnet-qd4upp83",
"subnet-g7vmz57f",
"subnet-hqbm5bwx",
],
},
apiServerNetwork: {
vpcId: "vpc-b4zgfr3a",
subnetId: "subnet-cp3juq8r",
},
tags: {
createBy: "Terraform",
},
});
import pulumi
import pulumi_tencentcloud as tencentcloud
example = tencentcloud.DbdcDbCustomCluster("example",
cluster_name="tf-example",
cluster_description="cluster description.",
container_network={
"vpc_id": "vpc-py7mlxqm",
"subnet_ids": [
"subnet-qd4upp83",
"subnet-g7vmz57f",
"subnet-hqbm5bwx",
],
},
api_server_network={
"vpc_id": "vpc-b4zgfr3a",
"subnet_id": "subnet-cp3juq8r",
},
tags={
"createBy": "Terraform",
})
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/tencentcloud/tencentcloud"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := tencentcloud.NewDbdcDbCustomCluster(ctx, "example", &tencentcloud.DbdcDbCustomClusterArgs{
ClusterName: pulumi.String("tf-example"),
ClusterDescription: pulumi.String("cluster description."),
ContainerNetwork: &tencentcloud.DbdcDbCustomClusterContainerNetworkArgs{
VpcId: pulumi.String("vpc-py7mlxqm"),
SubnetIds: pulumi.StringArray{
pulumi.String("subnet-qd4upp83"),
pulumi.String("subnet-g7vmz57f"),
pulumi.String("subnet-hqbm5bwx"),
},
},
ApiServerNetwork: &tencentcloud.DbdcDbCustomClusterApiServerNetworkArgs{
VpcId: pulumi.String("vpc-b4zgfr3a"),
SubnetId: pulumi.String("subnet-cp3juq8r"),
},
Tags: pulumi.StringMap{
"createBy": pulumi.String("Terraform"),
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Tencentcloud = Pulumi.Tencentcloud;
return await Deployment.RunAsync(() =>
{
var example = new Tencentcloud.DbdcDbCustomCluster("example", new()
{
ClusterName = "tf-example",
ClusterDescription = "cluster description.",
ContainerNetwork = new Tencentcloud.Inputs.DbdcDbCustomClusterContainerNetworkArgs
{
VpcId = "vpc-py7mlxqm",
SubnetIds = new[]
{
"subnet-qd4upp83",
"subnet-g7vmz57f",
"subnet-hqbm5bwx",
},
},
ApiServerNetwork = new Tencentcloud.Inputs.DbdcDbCustomClusterApiServerNetworkArgs
{
VpcId = "vpc-b4zgfr3a",
SubnetId = "subnet-cp3juq8r",
},
Tags =
{
{ "createBy", "Terraform" },
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.tencentcloud.DbdcDbCustomCluster;
import com.pulumi.tencentcloud.DbdcDbCustomClusterArgs;
import com.pulumi.tencentcloud.inputs.DbdcDbCustomClusterContainerNetworkArgs;
import com.pulumi.tencentcloud.inputs.DbdcDbCustomClusterApiServerNetworkArgs;
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) {
var example = new DbdcDbCustomCluster("example", DbdcDbCustomClusterArgs.builder()
.clusterName("tf-example")
.clusterDescription("cluster description.")
.containerNetwork(DbdcDbCustomClusterContainerNetworkArgs.builder()
.vpcId("vpc-py7mlxqm")
.subnetIds(
"subnet-qd4upp83",
"subnet-g7vmz57f",
"subnet-hqbm5bwx")
.build())
.apiServerNetwork(DbdcDbCustomClusterApiServerNetworkArgs.builder()
.vpcId("vpc-b4zgfr3a")
.subnetId("subnet-cp3juq8r")
.build())
.tags(Map.of("createBy", "Terraform"))
.build());
}
}
resources:
example:
type: tencentcloud:DbdcDbCustomCluster
properties:
clusterName: tf-example
clusterDescription: cluster description.
containerNetwork:
vpcId: vpc-py7mlxqm
subnetIds:
- subnet-qd4upp83
- subnet-g7vmz57f
- subnet-hqbm5bwx
apiServerNetwork:
vpcId: vpc-b4zgfr3a
subnetId: subnet-cp3juq8r
tags:
createBy: Terraform
Example coming soon!
Create DbdcDbCustomCluster Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new DbdcDbCustomCluster(name: string, args: DbdcDbCustomClusterArgs, opts?: CustomResourceOptions);@overload
def DbdcDbCustomCluster(resource_name: str,
args: DbdcDbCustomClusterArgs,
opts: Optional[ResourceOptions] = None)
@overload
def DbdcDbCustomCluster(resource_name: str,
opts: Optional[ResourceOptions] = None,
api_server_network: Optional[DbdcDbCustomClusterApiServerNetworkArgs] = None,
cluster_name: Optional[str] = None,
container_network: Optional[DbdcDbCustomClusterContainerNetworkArgs] = None,
cluster_description: Optional[str] = None,
dbdc_db_custom_cluster_id: Optional[str] = None,
tags: Optional[Mapping[str, str]] = None,
timeouts: Optional[DbdcDbCustomClusterTimeoutsArgs] = None)func NewDbdcDbCustomCluster(ctx *Context, name string, args DbdcDbCustomClusterArgs, opts ...ResourceOption) (*DbdcDbCustomCluster, error)public DbdcDbCustomCluster(string name, DbdcDbCustomClusterArgs args, CustomResourceOptions? opts = null)
public DbdcDbCustomCluster(String name, DbdcDbCustomClusterArgs args)
public DbdcDbCustomCluster(String name, DbdcDbCustomClusterArgs args, CustomResourceOptions options)
type: tencentcloud:DbdcDbCustomCluster
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
resource "tencentcloud_dbdcdbcustomcluster" "name" {
# resource properties
}Parameters
- name string
- The unique name of the resource.
- args DbdcDbCustomClusterArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args DbdcDbCustomClusterArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args DbdcDbCustomClusterArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args DbdcDbCustomClusterArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args DbdcDbCustomClusterArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
DbdcDbCustomCluster Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The DbdcDbCustomCluster resource accepts the following input properties:
- Api
Server DbdcNetwork Db Custom Cluster Api Server Network - Network information of the cluster API Server. Must be a network owned by this account, and can be the same as the container network.
- Cluster
Name string - Cluster name. Up to 128 characters, only Chinese, English and underscore are allowed.
- Container
Network DbdcDb Custom Cluster Container Network - Container network. All pods in this cluster are connected to this network.
- Cluster
Description string - Cluster description.
- Dbdc
Db stringCustom Cluster Id - ID of the resource.
- Dictionary<string, string>
- Cluster tags.
- Timeouts
Dbdc
Db Custom Cluster Timeouts
- Api
Server DbdcNetwork Db Custom Cluster Api Server Network Args - Network information of the cluster API Server. Must be a network owned by this account, and can be the same as the container network.
- Cluster
Name string - Cluster name. Up to 128 characters, only Chinese, English and underscore are allowed.
- Container
Network DbdcDb Custom Cluster Container Network Args - Container network. All pods in this cluster are connected to this network.
- Cluster
Description string - Cluster description.
- Dbdc
Db stringCustom Cluster Id - ID of the resource.
- map[string]string
- Cluster tags.
- Timeouts
Dbdc
Db Custom Cluster Timeouts Args
- api_
server_ objectnetwork - Network information of the cluster API Server. Must be a network owned by this account, and can be the same as the container network.
- cluster_
name string - Cluster name. Up to 128 characters, only Chinese, English and underscore are allowed.
- container_
network object - Container network. All pods in this cluster are connected to this network.
- cluster_
description string - Cluster description.
- dbdc_
db_ stringcustom_ cluster_ id - ID of the resource.
- map(string)
- Cluster tags.
- timeouts object
- api
Server DbdcNetwork Db Custom Cluster Api Server Network - Network information of the cluster API Server. Must be a network owned by this account, and can be the same as the container network.
- cluster
Name String - Cluster name. Up to 128 characters, only Chinese, English and underscore are allowed.
- container
Network DbdcDb Custom Cluster Container Network - Container network. All pods in this cluster are connected to this network.
- cluster
Description String - Cluster description.
- dbdc
Db StringCustom Cluster Id - ID of the resource.
- Map<String,String>
- Cluster tags.
- timeouts
Dbdc
Db Custom Cluster Timeouts
- api
Server DbdcNetwork Db Custom Cluster Api Server Network - Network information of the cluster API Server. Must be a network owned by this account, and can be the same as the container network.
- cluster
Name string - Cluster name. Up to 128 characters, only Chinese, English and underscore are allowed.
- container
Network DbdcDb Custom Cluster Container Network - Container network. All pods in this cluster are connected to this network.
- cluster
Description string - Cluster description.
- dbdc
Db stringCustom Cluster Id - ID of the resource.
- {[key: string]: string}
- Cluster tags.
- timeouts
Dbdc
Db Custom Cluster Timeouts
- api_
server_ Dbdcnetwork Db Custom Cluster Api Server Network Args - Network information of the cluster API Server. Must be a network owned by this account, and can be the same as the container network.
- cluster_
name str - Cluster name. Up to 128 characters, only Chinese, English and underscore are allowed.
- container_
network DbdcDb Custom Cluster Container Network Args - Container network. All pods in this cluster are connected to this network.
- cluster_
description str - Cluster description.
- dbdc_
db_ strcustom_ cluster_ id - ID of the resource.
- Mapping[str, str]
- Cluster tags.
- timeouts
Dbdc
Db Custom Cluster Timeouts Args
- api
Server Property MapNetwork - Network information of the cluster API Server. Must be a network owned by this account, and can be the same as the container network.
- cluster
Name String - Cluster name. Up to 128 characters, only Chinese, English and underscore are allowed.
- container
Network Property Map - Container network. All pods in this cluster are connected to this network.
- cluster
Description String - Cluster description.
- dbdc
Db StringCustom Cluster Id - ID of the resource.
- Map<String>
- Cluster tags.
- timeouts Property Map
Outputs
All input properties are implicitly available as output properties. Additionally, the DbdcDbCustomCluster resource produces the following output properties:
- Cluster
Level string - Cluster level.
- Cluster
Node doubleNum - Number of nodes in the cluster.
- Cluster
Status string - DB Custom cluster status. Valid values:
Creating,Running,Destroying. - Cluster
Version string - Cluster version.
- Created
Time string - Creation time.
- Id string
- The provider-assigned unique ID for this managed resource.
- Region string
- Region that the cluster belongs to.
- Cluster
Level string - Cluster level.
- Cluster
Node float64Num - Number of nodes in the cluster.
- Cluster
Status string - DB Custom cluster status. Valid values:
Creating,Running,Destroying. - Cluster
Version string - Cluster version.
- Created
Time string - Creation time.
- Id string
- The provider-assigned unique ID for this managed resource.
- Region string
- Region that the cluster belongs to.
- cluster_
level string - Cluster level.
- cluster_
node_ numbernum - Number of nodes in the cluster.
- cluster_
status string - DB Custom cluster status. Valid values:
Creating,Running,Destroying. - cluster_
version string - Cluster version.
- created_
time string - Creation time.
- id string
- The provider-assigned unique ID for this managed resource.
- region string
- Region that the cluster belongs to.
- cluster
Level String - Cluster level.
- cluster
Node DoubleNum - Number of nodes in the cluster.
- cluster
Status String - DB Custom cluster status. Valid values:
Creating,Running,Destroying. - cluster
Version String - Cluster version.
- created
Time String - Creation time.
- id String
- The provider-assigned unique ID for this managed resource.
- region String
- Region that the cluster belongs to.
- cluster
Level string - Cluster level.
- cluster
Node numberNum - Number of nodes in the cluster.
- cluster
Status string - DB Custom cluster status. Valid values:
Creating,Running,Destroying. - cluster
Version string - Cluster version.
- created
Time string - Creation time.
- id string
- The provider-assigned unique ID for this managed resource.
- region string
- Region that the cluster belongs to.
- cluster_
level str - Cluster level.
- cluster_
node_ floatnum - Number of nodes in the cluster.
- cluster_
status str - DB Custom cluster status. Valid values:
Creating,Running,Destroying. - cluster_
version str - Cluster version.
- created_
time str - Creation time.
- id str
- The provider-assigned unique ID for this managed resource.
- region str
- Region that the cluster belongs to.
- cluster
Level String - Cluster level.
- cluster
Node NumberNum - Number of nodes in the cluster.
- cluster
Status String - DB Custom cluster status. Valid values:
Creating,Running,Destroying. - cluster
Version String - Cluster version.
- created
Time String - Creation time.
- id String
- The provider-assigned unique ID for this managed resource.
- region String
- Region that the cluster belongs to.
Look up Existing DbdcDbCustomCluster Resource
Get an existing DbdcDbCustomCluster resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: DbdcDbCustomClusterState, opts?: CustomResourceOptions): DbdcDbCustomCluster@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
api_server_network: Optional[DbdcDbCustomClusterApiServerNetworkArgs] = None,
cluster_description: Optional[str] = None,
cluster_level: Optional[str] = None,
cluster_name: Optional[str] = None,
cluster_node_num: Optional[float] = None,
cluster_status: Optional[str] = None,
cluster_version: Optional[str] = None,
container_network: Optional[DbdcDbCustomClusterContainerNetworkArgs] = None,
created_time: Optional[str] = None,
dbdc_db_custom_cluster_id: Optional[str] = None,
region: Optional[str] = None,
tags: Optional[Mapping[str, str]] = None,
timeouts: Optional[DbdcDbCustomClusterTimeoutsArgs] = None) -> DbdcDbCustomClusterfunc GetDbdcDbCustomCluster(ctx *Context, name string, id IDInput, state *DbdcDbCustomClusterState, opts ...ResourceOption) (*DbdcDbCustomCluster, error)public static DbdcDbCustomCluster Get(string name, Input<string> id, DbdcDbCustomClusterState? state, CustomResourceOptions? opts = null)public static DbdcDbCustomCluster get(String name, Output<String> id, DbdcDbCustomClusterState state, CustomResourceOptions options)resources: _: type: tencentcloud:DbdcDbCustomCluster get: id: ${id}import {
to = tencentcloud_dbdcdbcustomcluster.example
id = "${id}"
}
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Api
Server DbdcNetwork Db Custom Cluster Api Server Network - Network information of the cluster API Server. Must be a network owned by this account, and can be the same as the container network.
- Cluster
Description string - Cluster description.
- Cluster
Level string - Cluster level.
- Cluster
Name string - Cluster name. Up to 128 characters, only Chinese, English and underscore are allowed.
- Cluster
Node doubleNum - Number of nodes in the cluster.
- Cluster
Status string - DB Custom cluster status. Valid values:
Creating,Running,Destroying. - Cluster
Version string - Cluster version.
- Container
Network DbdcDb Custom Cluster Container Network - Container network. All pods in this cluster are connected to this network.
- Created
Time string - Creation time.
- Dbdc
Db stringCustom Cluster Id - ID of the resource.
- Region string
- Region that the cluster belongs to.
- Dictionary<string, string>
- Cluster tags.
- Timeouts
Dbdc
Db Custom Cluster Timeouts
- Api
Server DbdcNetwork Db Custom Cluster Api Server Network Args - Network information of the cluster API Server. Must be a network owned by this account, and can be the same as the container network.
- Cluster
Description string - Cluster description.
- Cluster
Level string - Cluster level.
- Cluster
Name string - Cluster name. Up to 128 characters, only Chinese, English and underscore are allowed.
- Cluster
Node float64Num - Number of nodes in the cluster.
- Cluster
Status string - DB Custom cluster status. Valid values:
Creating,Running,Destroying. - Cluster
Version string - Cluster version.
- Container
Network DbdcDb Custom Cluster Container Network Args - Container network. All pods in this cluster are connected to this network.
- Created
Time string - Creation time.
- Dbdc
Db stringCustom Cluster Id - ID of the resource.
- Region string
- Region that the cluster belongs to.
- map[string]string
- Cluster tags.
- Timeouts
Dbdc
Db Custom Cluster Timeouts Args
- api_
server_ objectnetwork - Network information of the cluster API Server. Must be a network owned by this account, and can be the same as the container network.
- cluster_
description string - Cluster description.
- cluster_
level string - Cluster level.
- cluster_
name string - Cluster name. Up to 128 characters, only Chinese, English and underscore are allowed.
- cluster_
node_ numbernum - Number of nodes in the cluster.
- cluster_
status string - DB Custom cluster status. Valid values:
Creating,Running,Destroying. - cluster_
version string - Cluster version.
- container_
network object - Container network. All pods in this cluster are connected to this network.
- created_
time string - Creation time.
- dbdc_
db_ stringcustom_ cluster_ id - ID of the resource.
- region string
- Region that the cluster belongs to.
- map(string)
- Cluster tags.
- timeouts object
- api
Server DbdcNetwork Db Custom Cluster Api Server Network - Network information of the cluster API Server. Must be a network owned by this account, and can be the same as the container network.
- cluster
Description String - Cluster description.
- cluster
Level String - Cluster level.
- cluster
Name String - Cluster name. Up to 128 characters, only Chinese, English and underscore are allowed.
- cluster
Node DoubleNum - Number of nodes in the cluster.
- cluster
Status String - DB Custom cluster status. Valid values:
Creating,Running,Destroying. - cluster
Version String - Cluster version.
- container
Network DbdcDb Custom Cluster Container Network - Container network. All pods in this cluster are connected to this network.
- created
Time String - Creation time.
- dbdc
Db StringCustom Cluster Id - ID of the resource.
- region String
- Region that the cluster belongs to.
- Map<String,String>
- Cluster tags.
- timeouts
Dbdc
Db Custom Cluster Timeouts
- api
Server DbdcNetwork Db Custom Cluster Api Server Network - Network information of the cluster API Server. Must be a network owned by this account, and can be the same as the container network.
- cluster
Description string - Cluster description.
- cluster
Level string - Cluster level.
- cluster
Name string - Cluster name. Up to 128 characters, only Chinese, English and underscore are allowed.
- cluster
Node numberNum - Number of nodes in the cluster.
- cluster
Status string - DB Custom cluster status. Valid values:
Creating,Running,Destroying. - cluster
Version string - Cluster version.
- container
Network DbdcDb Custom Cluster Container Network - Container network. All pods in this cluster are connected to this network.
- created
Time string - Creation time.
- dbdc
Db stringCustom Cluster Id - ID of the resource.
- region string
- Region that the cluster belongs to.
- {[key: string]: string}
- Cluster tags.
- timeouts
Dbdc
Db Custom Cluster Timeouts
- api_
server_ Dbdcnetwork Db Custom Cluster Api Server Network Args - Network information of the cluster API Server. Must be a network owned by this account, and can be the same as the container network.
- cluster_
description str - Cluster description.
- cluster_
level str - Cluster level.
- cluster_
name str - Cluster name. Up to 128 characters, only Chinese, English and underscore are allowed.
- cluster_
node_ floatnum - Number of nodes in the cluster.
- cluster_
status str - DB Custom cluster status. Valid values:
Creating,Running,Destroying. - cluster_
version str - Cluster version.
- container_
network DbdcDb Custom Cluster Container Network Args - Container network. All pods in this cluster are connected to this network.
- created_
time str - Creation time.
- dbdc_
db_ strcustom_ cluster_ id - ID of the resource.
- region str
- Region that the cluster belongs to.
- Mapping[str, str]
- Cluster tags.
- timeouts
Dbdc
Db Custom Cluster Timeouts Args
- api
Server Property MapNetwork - Network information of the cluster API Server. Must be a network owned by this account, and can be the same as the container network.
- cluster
Description String - Cluster description.
- cluster
Level String - Cluster level.
- cluster
Name String - Cluster name. Up to 128 characters, only Chinese, English and underscore are allowed.
- cluster
Node NumberNum - Number of nodes in the cluster.
- cluster
Status String - DB Custom cluster status. Valid values:
Creating,Running,Destroying. - cluster
Version String - Cluster version.
- container
Network Property Map - Container network. All pods in this cluster are connected to this network.
- created
Time String - Creation time.
- dbdc
Db StringCustom Cluster Id - ID of the resource.
- region String
- Region that the cluster belongs to.
- Map<String>
- Cluster tags.
- timeouts Property Map
Supporting Types
DbdcDbCustomClusterApiServerNetwork, DbdcDbCustomClusterApiServerNetworkArgs
DbdcDbCustomClusterContainerNetwork, DbdcDbCustomClusterContainerNetworkArgs
- subnet_
ids list(string) - Subnet ID list of the container network.
- vpc_
id string - VPC ID of the container network.
- subnet_
ids Sequence[str] - Subnet ID list of the container network.
- vpc_
id str - VPC ID of the container network.
DbdcDbCustomClusterTimeouts, DbdcDbCustomClusterTimeoutsArgs
Import
DBDC db custom cluster can be imported using the id, e.g.
$ pulumi import tencentcloud:index/dbdcDbCustomCluster:DbdcDbCustomCluster example dbcc-k7snlxyu
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- tencentcloud tencentcloudstack/terraform-provider-tencentcloud
- License
- Notes
- This Pulumi package is based on the
tencentcloudTerraform Provider.
published on Friday, Jul 17, 2026 by tencentcloudstack