GetCluster

Retrieve information about an EKS Cluster.

Example Usage

Coming soon!

Coming soon!

Coming soon!

import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";

const example = pulumi.output(aws.eks.getCluster({
    name: "example",
}, { async: true }));

export const endpoint = example.endpoint;
export const kubeconfig_certificate_authority_data = example.certificateAuthorities.data;
// Only available on Kubernetes version 1.13 and 1.14 clusters created or upgraded on or after September 3, 2019.
export const identity_oidc_issuer = example.identities[0].oidcs[0].issuer;

Using GetCluster

function getCluster(args: GetClusterArgs, opts?: InvokeOptions): Promise<GetClusterResult>
function  get_cluster(name=None, tags=None, opts=None)
func LookupCluster(ctx *Context, args *LookupClusterArgs, opts ...InvokeOption) (*LookupClusterResult, error)

Note: This function is named LookupCluster in the Go SDK.

public static class GetCluster {
    public static Task<GetClusterResult> InvokeAsync(GetClusterArgs args, InvokeOptions? opts = null)
}

The following arguments are supported:

Name string

The name of the cluster

Tags Dictionary<string, string>

Key-value map of resource tags.

Name string

The name of the cluster

Tags map[string]string

Key-value map of resource tags.

name string

The name of the cluster

tags {[key: string]: string}

Key-value map of resource tags.

name str

The name of the cluster

tags Dict[str, str]

Key-value map of resource tags.

GetCluster Result

The following output properties are available:

Arn string

The Amazon Resource Name (ARN) of the cluster.

CertificateAuthority GetClusterCertificateAuthority

Nested attribute containing certificate-authority-data for your cluster.

CreatedAt string

The Unix epoch time stamp in seconds for when the cluster was created.

EnabledClusterLogTypes List<string>

The enabled control plane logs.

Endpoint string

The endpoint for your Kubernetes API server.

Id string

The provider-assigned unique ID for this managed resource.

Identities List<GetClusterIdentity>

Nested attribute containing identity provider information for your cluster. Only available on Kubernetes version 1.13 and 1.14 clusters created or upgraded on or after September 3, 2019. For an example using this information to enable IAM Roles for Service Accounts, see the aws.eks.Cluster resource documentation.

Name string
PlatformVersion string

The platform version for the cluster.

RoleArn string

The Amazon Resource Name (ARN) of the IAM role that provides permissions for the Kubernetes control plane to make calls to AWS API operations on your behalf.

Status string

The status of the EKS cluster. One of CREATING, ACTIVE, DELETING, FAILED.

Tags Dictionary<string, string>

Key-value map of resource tags.

Version string

The Kubernetes server version for the cluster.

VpcConfig GetClusterVpcConfig

Nested list containing VPC configuration for the cluster.

Arn string

The Amazon Resource Name (ARN) of the cluster.

CertificateAuthority GetClusterCertificateAuthority

Nested attribute containing certificate-authority-data for your cluster.

CreatedAt string

The Unix epoch time stamp in seconds for when the cluster was created.

EnabledClusterLogTypes []string

The enabled control plane logs.

Endpoint string

The endpoint for your Kubernetes API server.

Id string

The provider-assigned unique ID for this managed resource.

Identities []GetClusterIdentity

Nested attribute containing identity provider information for your cluster. Only available on Kubernetes version 1.13 and 1.14 clusters created or upgraded on or after September 3, 2019. For an example using this information to enable IAM Roles for Service Accounts, see the aws.eks.Cluster resource documentation.

Name string
PlatformVersion string

The platform version for the cluster.

RoleArn string

The Amazon Resource Name (ARN) of the IAM role that provides permissions for the Kubernetes control plane to make calls to AWS API operations on your behalf.

Status string

The status of the EKS cluster. One of CREATING, ACTIVE, DELETING, FAILED.

Tags map[string]string

Key-value map of resource tags.

Version string

The Kubernetes server version for the cluster.

VpcConfig GetClusterVpcConfig

Nested list containing VPC configuration for the cluster.

arn string

The Amazon Resource Name (ARN) of the cluster.

certificateAuthority GetClusterCertificateAuthority

Nested attribute containing certificate-authority-data for your cluster.

createdAt string

The Unix epoch time stamp in seconds for when the cluster was created.

enabledClusterLogTypes string[]

The enabled control plane logs.

endpoint string

The endpoint for your Kubernetes API server.

id string

The provider-assigned unique ID for this managed resource.

identities GetClusterIdentity[]

Nested attribute containing identity provider information for your cluster. Only available on Kubernetes version 1.13 and 1.14 clusters created or upgraded on or after September 3, 2019. For an example using this information to enable IAM Roles for Service Accounts, see the aws.eks.Cluster resource documentation.

name string
platformVersion string

The platform version for the cluster.

roleArn string

The Amazon Resource Name (ARN) of the IAM role that provides permissions for the Kubernetes control plane to make calls to AWS API operations on your behalf.

status string

The status of the EKS cluster. One of CREATING, ACTIVE, DELETING, FAILED.

tags {[key: string]: string}

Key-value map of resource tags.

version string

The Kubernetes server version for the cluster.

vpcConfig GetClusterVpcConfig

Nested list containing VPC configuration for the cluster.

arn str

The Amazon Resource Name (ARN) of the cluster.

certificate_authority Dict[GetClusterCertificateAuthority]

Nested attribute containing certificate-authority-data for your cluster.

created_at str

The Unix epoch time stamp in seconds for when the cluster was created.

enabled_cluster_log_types List[str]

The enabled control plane logs.

endpoint str

The endpoint for your Kubernetes API server.

id str

The provider-assigned unique ID for this managed resource.

identities List[GetClusterIdentity]

Nested attribute containing identity provider information for your cluster. Only available on Kubernetes version 1.13 and 1.14 clusters created or upgraded on or after September 3, 2019. For an example using this information to enable IAM Roles for Service Accounts, see the aws.eks.Cluster resource documentation.

name str
platform_version str

The platform version for the cluster.

role_arn str

The Amazon Resource Name (ARN) of the IAM role that provides permissions for the Kubernetes control plane to make calls to AWS API operations on your behalf.

status str

The status of the EKS cluster. One of CREATING, ACTIVE, DELETING, FAILED.

tags Dict[str, str]

Key-value map of resource tags.

version str

The Kubernetes server version for the cluster.

vpc_config Dict[GetClusterVpcConfig]

Nested list containing VPC configuration for the cluster.

Supporting Types

GetClusterCertificateAuthority

See the output API doc for this type.

See the output API doc for this type.

See the output API doc for this type.

Data string

The base64 encoded certificate data required to communicate with your cluster. Add this to the certificate-authority-data section of the kubeconfig file for your cluster.

Data string

The base64 encoded certificate data required to communicate with your cluster. Add this to the certificate-authority-data section of the kubeconfig file for your cluster.

data string

The base64 encoded certificate data required to communicate with your cluster. Add this to the certificate-authority-data section of the kubeconfig file for your cluster.

data str

The base64 encoded certificate data required to communicate with your cluster. Add this to the certificate-authority-data section of the kubeconfig file for your cluster.

GetClusterIdentity

See the output API doc for this type.

See the output API doc for this type.

See the output API doc for this type.

Oidcs List<GetClusterIdentityOidcArgs>

Nested attribute containing OpenID Connect identity provider information for the cluster.

Oidcs []GetClusterIdentityOidc

Nested attribute containing OpenID Connect identity provider information for the cluster.

oidcs GetClusterIdentityOidc[]

Nested attribute containing OpenID Connect identity provider information for the cluster.

oidcs List[GetClusterIdentityOidc]

Nested attribute containing OpenID Connect identity provider information for the cluster.

GetClusterIdentityOidc

See the output API doc for this type.

See the output API doc for this type.

See the output API doc for this type.

Issuer string

Issuer URL for the OpenID Connect identity provider.

Issuer string

Issuer URL for the OpenID Connect identity provider.

issuer string

Issuer URL for the OpenID Connect identity provider.

issuer str

Issuer URL for the OpenID Connect identity provider.

GetClusterVpcConfig

See the output API doc for this type.

See the output API doc for this type.

See the output API doc for this type.

ClusterSecurityGroupId string

The cluster security group that was created by Amazon EKS for the cluster.

EndpointPrivateAccess bool

Indicates whether or not the Amazon EKS private API server endpoint is enabled.

EndpointPublicAccess bool

Indicates whether or not the Amazon EKS public API server endpoint is enabled.

PublicAccessCidrs List<string>

List of CIDR blocks. Indicates which CIDR blocks can access the Amazon EKS public API server endpoint.

SecurityGroupIds List<string>

List of security group IDs

SubnetIds List<string>

List of subnet IDs

VpcId string

The VPC associated with your cluster.

ClusterSecurityGroupId string

The cluster security group that was created by Amazon EKS for the cluster.

EndpointPrivateAccess bool

Indicates whether or not the Amazon EKS private API server endpoint is enabled.

EndpointPublicAccess bool

Indicates whether or not the Amazon EKS public API server endpoint is enabled.

PublicAccessCidrs []string

List of CIDR blocks. Indicates which CIDR blocks can access the Amazon EKS public API server endpoint.

SecurityGroupIds []string

List of security group IDs

SubnetIds []string

List of subnet IDs

VpcId string

The VPC associated with your cluster.

clusterSecurityGroupId string

The cluster security group that was created by Amazon EKS for the cluster.

endpointPrivateAccess boolean

Indicates whether or not the Amazon EKS private API server endpoint is enabled.

endpointPublicAccess boolean

Indicates whether or not the Amazon EKS public API server endpoint is enabled.

publicAccessCidrs string[]

List of CIDR blocks. Indicates which CIDR blocks can access the Amazon EKS public API server endpoint.

securityGroupIds string[]

List of security group IDs

subnetIds string[]

List of subnet IDs

vpcId string

The VPC associated with your cluster.

clusterSecurityGroupId str

The cluster security group that was created by Amazon EKS for the cluster.

endpointPrivateAccess bool

Indicates whether or not the Amazon EKS private API server endpoint is enabled.

endpointPublicAccess bool

Indicates whether or not the Amazon EKS public API server endpoint is enabled.

publicAccessCidrs List[str]

List of CIDR blocks. Indicates which CIDR blocks can access the Amazon EKS public API server endpoint.

security_group_ids List[str]

List of security group IDs

subnet_ids List[str]

List of subnet IDs

vpc_id str

The VPC associated with your cluster.

Package Details

Repository
https://github.com/pulumi/pulumi-aws
License
Apache-2.0
Notes
This Pulumi package is based on the aws Terraform Provider.