1. Packages
  2. Tencentcloud Provider
  3. API Docs
  4. EksCluster
tencentcloud 1.81.183 published on Wednesday, Apr 16, 2025 by tencentcloudstack

tencentcloud.EksCluster

Explore with Pulumi AI

Create EksCluster Resource

Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

Constructor syntax

new EksCluster(name: string, args: EksClusterArgs, opts?: CustomResourceOptions);
@overload
def EksCluster(resource_name: str,
               args: EksClusterArgs,
               opts: Optional[ResourceOptions] = None)

@overload
def EksCluster(resource_name: str,
               opts: Optional[ResourceOptions] = None,
               k8s_version: Optional[str] = None,
               cluster_name: Optional[str] = None,
               vpc_id: Optional[str] = None,
               subnet_ids: Optional[Sequence[str]] = None,
               internal_lb: Optional[EksClusterInternalLbArgs] = None,
               extra_param: Optional[Mapping[str, str]] = None,
               cluster_desc: Optional[str] = None,
               enable_vpc_core_dns: Optional[bool] = None,
               need_delete_cbs: Optional[bool] = None,
               public_lb: Optional[EksClusterPublicLbArgs] = None,
               service_subnet_id: Optional[str] = None,
               eks_cluster_id: Optional[str] = None,
               tags: Optional[Mapping[str, str]] = None,
               dns_servers: Optional[Sequence[EksClusterDnsServerArgs]] = None)
func NewEksCluster(ctx *Context, name string, args EksClusterArgs, opts ...ResourceOption) (*EksCluster, error)
public EksCluster(string name, EksClusterArgs args, CustomResourceOptions? opts = null)
public EksCluster(String name, EksClusterArgs args)
public EksCluster(String name, EksClusterArgs args, CustomResourceOptions options)
type: tencentcloud:EksCluster
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args This property is required. EksClusterArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. EksClusterArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args This property is required. EksClusterArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. EksClusterArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. EksClusterArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

EksCluster 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 EksCluster resource accepts the following input properties:

ClusterName This property is required. string
Name of EKS cluster.
K8sVersion This property is required. string
Kubernetes version of EKS cluster.
SubnetIds This property is required. List<string>
Subnet Ids for EKS cluster.
VpcId This property is required. string
Vpc Id of EKS cluster.
ClusterDesc string
Description of EKS cluster.
DnsServers List<EksClusterDnsServer>
List of cluster custom DNS Server info.
EksClusterId string
EnableVpcCoreDns bool
Indicates whether to enable dns in user cluster, default value is true.
ExtraParam Dictionary<string, string>
Extend parameters.
InternalLb EksClusterInternalLb
Cluster internal access LoadBalancer info.
NeedDeleteCbs bool
Delete CBS after EKS cluster remove.
PublicLb EksClusterPublicLb
Cluster public access LoadBalancer info.
ServiceSubnetId string
Subnet id of service.
Tags Dictionary<string, string>
Tags of EKS cluster.
ClusterName This property is required. string
Name of EKS cluster.
K8sVersion This property is required. string
Kubernetes version of EKS cluster.
SubnetIds This property is required. []string
Subnet Ids for EKS cluster.
VpcId This property is required. string
Vpc Id of EKS cluster.
ClusterDesc string
Description of EKS cluster.
DnsServers []EksClusterDnsServerArgs
List of cluster custom DNS Server info.
EksClusterId string
EnableVpcCoreDns bool
Indicates whether to enable dns in user cluster, default value is true.
ExtraParam map[string]string
Extend parameters.
InternalLb EksClusterInternalLbArgs
Cluster internal access LoadBalancer info.
NeedDeleteCbs bool
Delete CBS after EKS cluster remove.
PublicLb EksClusterPublicLbArgs
Cluster public access LoadBalancer info.
ServiceSubnetId string
Subnet id of service.
Tags map[string]string
Tags of EKS cluster.
clusterName This property is required. String
Name of EKS cluster.
k8sVersion This property is required. String
Kubernetes version of EKS cluster.
subnetIds This property is required. List<String>
Subnet Ids for EKS cluster.
vpcId This property is required. String
Vpc Id of EKS cluster.
clusterDesc String
Description of EKS cluster.
dnsServers List<EksClusterDnsServer>
List of cluster custom DNS Server info.
eksClusterId String
enableVpcCoreDns Boolean
Indicates whether to enable dns in user cluster, default value is true.
extraParam Map<String,String>
Extend parameters.
internalLb EksClusterInternalLb
Cluster internal access LoadBalancer info.
needDeleteCbs Boolean
Delete CBS after EKS cluster remove.
publicLb EksClusterPublicLb
Cluster public access LoadBalancer info.
serviceSubnetId String
Subnet id of service.
tags Map<String,String>
Tags of EKS cluster.
clusterName This property is required. string
Name of EKS cluster.
k8sVersion This property is required. string
Kubernetes version of EKS cluster.
subnetIds This property is required. string[]
Subnet Ids for EKS cluster.
vpcId This property is required. string
Vpc Id of EKS cluster.
clusterDesc string
Description of EKS cluster.
dnsServers EksClusterDnsServer[]
List of cluster custom DNS Server info.
eksClusterId string
enableVpcCoreDns boolean
Indicates whether to enable dns in user cluster, default value is true.
extraParam {[key: string]: string}
Extend parameters.
internalLb EksClusterInternalLb
Cluster internal access LoadBalancer info.
needDeleteCbs boolean
Delete CBS after EKS cluster remove.
publicLb EksClusterPublicLb
Cluster public access LoadBalancer info.
serviceSubnetId string
Subnet id of service.
tags {[key: string]: string}
Tags of EKS cluster.
cluster_name This property is required. str
Name of EKS cluster.
k8s_version This property is required. str
Kubernetes version of EKS cluster.
subnet_ids This property is required. Sequence[str]
Subnet Ids for EKS cluster.
vpc_id This property is required. str
Vpc Id of EKS cluster.
cluster_desc str
Description of EKS cluster.
dns_servers Sequence[EksClusterDnsServerArgs]
List of cluster custom DNS Server info.
eks_cluster_id str
enable_vpc_core_dns bool
Indicates whether to enable dns in user cluster, default value is true.
extra_param Mapping[str, str]
Extend parameters.
internal_lb EksClusterInternalLbArgs
Cluster internal access LoadBalancer info.
need_delete_cbs bool
Delete CBS after EKS cluster remove.
public_lb EksClusterPublicLbArgs
Cluster public access LoadBalancer info.
service_subnet_id str
Subnet id of service.
tags Mapping[str, str]
Tags of EKS cluster.
clusterName This property is required. String
Name of EKS cluster.
k8sVersion This property is required. String
Kubernetes version of EKS cluster.
subnetIds This property is required. List<String>
Subnet Ids for EKS cluster.
vpcId This property is required. String
Vpc Id of EKS cluster.
clusterDesc String
Description of EKS cluster.
dnsServers List<Property Map>
List of cluster custom DNS Server info.
eksClusterId String
enableVpcCoreDns Boolean
Indicates whether to enable dns in user cluster, default value is true.
extraParam Map<String>
Extend parameters.
internalLb Property Map
Cluster internal access LoadBalancer info.
needDeleteCbs Boolean
Delete CBS after EKS cluster remove.
publicLb Property Map
Cluster public access LoadBalancer info.
serviceSubnetId String
Subnet id of service.
tags Map<String>
Tags of EKS cluster.

Outputs

All input properties are implicitly available as output properties. Additionally, the EksCluster resource produces the following output properties:

Id string
The provider-assigned unique ID for this managed resource.
KubeConfig string
EKS cluster kubeconfig.
Id string
The provider-assigned unique ID for this managed resource.
KubeConfig string
EKS cluster kubeconfig.
id String
The provider-assigned unique ID for this managed resource.
kubeConfig String
EKS cluster kubeconfig.
id string
The provider-assigned unique ID for this managed resource.
kubeConfig string
EKS cluster kubeconfig.
id str
The provider-assigned unique ID for this managed resource.
kube_config str
EKS cluster kubeconfig.
id String
The provider-assigned unique ID for this managed resource.
kubeConfig String
EKS cluster kubeconfig.

Look up Existing EksCluster Resource

Get an existing EksCluster 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?: EksClusterState, opts?: CustomResourceOptions): EksCluster
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        cluster_desc: Optional[str] = None,
        cluster_name: Optional[str] = None,
        dns_servers: Optional[Sequence[EksClusterDnsServerArgs]] = None,
        eks_cluster_id: Optional[str] = None,
        enable_vpc_core_dns: Optional[bool] = None,
        extra_param: Optional[Mapping[str, str]] = None,
        internal_lb: Optional[EksClusterInternalLbArgs] = None,
        k8s_version: Optional[str] = None,
        kube_config: Optional[str] = None,
        need_delete_cbs: Optional[bool] = None,
        public_lb: Optional[EksClusterPublicLbArgs] = None,
        service_subnet_id: Optional[str] = None,
        subnet_ids: Optional[Sequence[str]] = None,
        tags: Optional[Mapping[str, str]] = None,
        vpc_id: Optional[str] = None) -> EksCluster
func GetEksCluster(ctx *Context, name string, id IDInput, state *EksClusterState, opts ...ResourceOption) (*EksCluster, error)
public static EksCluster Get(string name, Input<string> id, EksClusterState? state, CustomResourceOptions? opts = null)
public static EksCluster get(String name, Output<String> id, EksClusterState state, CustomResourceOptions options)
resources:  _:    type: tencentcloud:EksCluster    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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.
The following state arguments are supported:
ClusterDesc string
Description of EKS cluster.
ClusterName string
Name of EKS cluster.
DnsServers List<EksClusterDnsServer>
List of cluster custom DNS Server info.
EksClusterId string
EnableVpcCoreDns bool
Indicates whether to enable dns in user cluster, default value is true.
ExtraParam Dictionary<string, string>
Extend parameters.
InternalLb EksClusterInternalLb
Cluster internal access LoadBalancer info.
K8sVersion string
Kubernetes version of EKS cluster.
KubeConfig string
EKS cluster kubeconfig.
NeedDeleteCbs bool
Delete CBS after EKS cluster remove.
PublicLb EksClusterPublicLb
Cluster public access LoadBalancer info.
ServiceSubnetId string
Subnet id of service.
SubnetIds List<string>
Subnet Ids for EKS cluster.
Tags Dictionary<string, string>
Tags of EKS cluster.
VpcId string
Vpc Id of EKS cluster.
ClusterDesc string
Description of EKS cluster.
ClusterName string
Name of EKS cluster.
DnsServers []EksClusterDnsServerArgs
List of cluster custom DNS Server info.
EksClusterId string
EnableVpcCoreDns bool
Indicates whether to enable dns in user cluster, default value is true.
ExtraParam map[string]string
Extend parameters.
InternalLb EksClusterInternalLbArgs
Cluster internal access LoadBalancer info.
K8sVersion string
Kubernetes version of EKS cluster.
KubeConfig string
EKS cluster kubeconfig.
NeedDeleteCbs bool
Delete CBS after EKS cluster remove.
PublicLb EksClusterPublicLbArgs
Cluster public access LoadBalancer info.
ServiceSubnetId string
Subnet id of service.
SubnetIds []string
Subnet Ids for EKS cluster.
Tags map[string]string
Tags of EKS cluster.
VpcId string
Vpc Id of EKS cluster.
clusterDesc String
Description of EKS cluster.
clusterName String
Name of EKS cluster.
dnsServers List<EksClusterDnsServer>
List of cluster custom DNS Server info.
eksClusterId String
enableVpcCoreDns Boolean
Indicates whether to enable dns in user cluster, default value is true.
extraParam Map<String,String>
Extend parameters.
internalLb EksClusterInternalLb
Cluster internal access LoadBalancer info.
k8sVersion String
Kubernetes version of EKS cluster.
kubeConfig String
EKS cluster kubeconfig.
needDeleteCbs Boolean
Delete CBS after EKS cluster remove.
publicLb EksClusterPublicLb
Cluster public access LoadBalancer info.
serviceSubnetId String
Subnet id of service.
subnetIds List<String>
Subnet Ids for EKS cluster.
tags Map<String,String>
Tags of EKS cluster.
vpcId String
Vpc Id of EKS cluster.
clusterDesc string
Description of EKS cluster.
clusterName string
Name of EKS cluster.
dnsServers EksClusterDnsServer[]
List of cluster custom DNS Server info.
eksClusterId string
enableVpcCoreDns boolean
Indicates whether to enable dns in user cluster, default value is true.
extraParam {[key: string]: string}
Extend parameters.
internalLb EksClusterInternalLb
Cluster internal access LoadBalancer info.
k8sVersion string
Kubernetes version of EKS cluster.
kubeConfig string
EKS cluster kubeconfig.
needDeleteCbs boolean
Delete CBS after EKS cluster remove.
publicLb EksClusterPublicLb
Cluster public access LoadBalancer info.
serviceSubnetId string
Subnet id of service.
subnetIds string[]
Subnet Ids for EKS cluster.
tags {[key: string]: string}
Tags of EKS cluster.
vpcId string
Vpc Id of EKS cluster.
cluster_desc str
Description of EKS cluster.
cluster_name str
Name of EKS cluster.
dns_servers Sequence[EksClusterDnsServerArgs]
List of cluster custom DNS Server info.
eks_cluster_id str
enable_vpc_core_dns bool
Indicates whether to enable dns in user cluster, default value is true.
extra_param Mapping[str, str]
Extend parameters.
internal_lb EksClusterInternalLbArgs
Cluster internal access LoadBalancer info.
k8s_version str
Kubernetes version of EKS cluster.
kube_config str
EKS cluster kubeconfig.
need_delete_cbs bool
Delete CBS after EKS cluster remove.
public_lb EksClusterPublicLbArgs
Cluster public access LoadBalancer info.
service_subnet_id str
Subnet id of service.
subnet_ids Sequence[str]
Subnet Ids for EKS cluster.
tags Mapping[str, str]
Tags of EKS cluster.
vpc_id str
Vpc Id of EKS cluster.
clusterDesc String
Description of EKS cluster.
clusterName String
Name of EKS cluster.
dnsServers List<Property Map>
List of cluster custom DNS Server info.
eksClusterId String
enableVpcCoreDns Boolean
Indicates whether to enable dns in user cluster, default value is true.
extraParam Map<String>
Extend parameters.
internalLb Property Map
Cluster internal access LoadBalancer info.
k8sVersion String
Kubernetes version of EKS cluster.
kubeConfig String
EKS cluster kubeconfig.
needDeleteCbs Boolean
Delete CBS after EKS cluster remove.
publicLb Property Map
Cluster public access LoadBalancer info.
serviceSubnetId String
Subnet id of service.
subnetIds List<String>
Subnet Ids for EKS cluster.
tags Map<String>
Tags of EKS cluster.
vpcId String
Vpc Id of EKS cluster.

Supporting Types

EksClusterDnsServer
, EksClusterDnsServerArgs

Domain string
DNS Server domain. Empty indicates all domain.
Servers List<string>
List of DNS Server IP address, pattern: "ip[:port]".
Domain string
DNS Server domain. Empty indicates all domain.
Servers []string
List of DNS Server IP address, pattern: "ip[:port]".
domain String
DNS Server domain. Empty indicates all domain.
servers List<String>
List of DNS Server IP address, pattern: "ip[:port]".
domain string
DNS Server domain. Empty indicates all domain.
servers string[]
List of DNS Server IP address, pattern: "ip[:port]".
domain str
DNS Server domain. Empty indicates all domain.
servers Sequence[str]
List of DNS Server IP address, pattern: "ip[:port]".
domain String
DNS Server domain. Empty indicates all domain.
servers List<String>
List of DNS Server IP address, pattern: "ip[:port]".

EksClusterInternalLb
, EksClusterInternalLbArgs

Enabled This property is required. bool
Indicates weather the internal access LB enabled.
SubnetId string
ID of subnet which related to Internal LB.
Enabled This property is required. bool
Indicates weather the internal access LB enabled.
SubnetId string
ID of subnet which related to Internal LB.
enabled This property is required. Boolean
Indicates weather the internal access LB enabled.
subnetId String
ID of subnet which related to Internal LB.
enabled This property is required. boolean
Indicates weather the internal access LB enabled.
subnetId string
ID of subnet which related to Internal LB.
enabled This property is required. bool
Indicates weather the internal access LB enabled.
subnet_id str
ID of subnet which related to Internal LB.
enabled This property is required. Boolean
Indicates weather the internal access LB enabled.
subnetId String
ID of subnet which related to Internal LB.

EksClusterPublicLb
, EksClusterPublicLbArgs

Enabled This property is required. bool
Indicates weather the public access LB enabled.
AllowFromCidrs List<string>
List of CIDRs which allowed to access.
ExtraParam string
Extra param text json.
SecurityGroup string
Security group.
SecurityPolicies List<string>
List of security allow IP or CIDRs, default deny all.
Enabled This property is required. bool
Indicates weather the public access LB enabled.
AllowFromCidrs []string
List of CIDRs which allowed to access.
ExtraParam string
Extra param text json.
SecurityGroup string
Security group.
SecurityPolicies []string
List of security allow IP or CIDRs, default deny all.
enabled This property is required. Boolean
Indicates weather the public access LB enabled.
allowFromCidrs List<String>
List of CIDRs which allowed to access.
extraParam String
Extra param text json.
securityGroup String
Security group.
securityPolicies List<String>
List of security allow IP or CIDRs, default deny all.
enabled This property is required. boolean
Indicates weather the public access LB enabled.
allowFromCidrs string[]
List of CIDRs which allowed to access.
extraParam string
Extra param text json.
securityGroup string
Security group.
securityPolicies string[]
List of security allow IP or CIDRs, default deny all.
enabled This property is required. bool
Indicates weather the public access LB enabled.
allow_from_cidrs Sequence[str]
List of CIDRs which allowed to access.
extra_param str
Extra param text json.
security_group str
Security group.
security_policies Sequence[str]
List of security allow IP or CIDRs, default deny all.
enabled This property is required. Boolean
Indicates weather the public access LB enabled.
allowFromCidrs List<String>
List of CIDRs which allowed to access.
extraParam String
Extra param text json.
securityGroup String
Security group.
securityPolicies List<String>
List of security allow IP or CIDRs, default deny all.

Package Details

Repository
tencentcloud tencentcloudstack/terraform-provider-tencentcloud
License
Notes
This Pulumi package is based on the tencentcloud Terraform Provider.