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
LookupClusterin the Go SDK.
public static class GetCluster {
public static Task<GetClusterResult> InvokeAsync(GetClusterArgs args, InvokeOptions? opts = null)
}The following arguments are supported:
GetCluster Result
The following output properties are available:
- Arn string
The Amazon Resource Name (ARN) of the cluster.
-
Get
Cluster Certificate Authority Nested attribute containing
certificate-authority-datafor your cluster.- Created
At string The Unix epoch time stamp in seconds for when the cluster was created.
- Enabled
Cluster List<string>Log Types 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<Get
Cluster Identity> 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.Clusterresource documentation.- Name string
- Platform
Version string The platform version for the cluster.
- Role
Arn 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.- Dictionary<string, string>
Key-value map of resource tags.
- Version string
The Kubernetes server version for the cluster.
- Vpc
Config GetCluster Vpc Config Nested list containing VPC configuration for the cluster.
- Arn string
The Amazon Resource Name (ARN) of the cluster.
-
Get
Cluster Certificate Authority Nested attribute containing
certificate-authority-datafor your cluster.- Created
At string The Unix epoch time stamp in seconds for when the cluster was created.
- Enabled
Cluster []stringLog Types 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
[]Get
Cluster Identity 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.Clusterresource documentation.- Name string
- Platform
Version string The platform version for the cluster.
- Role
Arn 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.- map[string]string
Key-value map of resource tags.
- Version string
The Kubernetes server version for the cluster.
- Vpc
Config GetCluster Vpc Config Nested list containing VPC configuration for the cluster.
- arn string
The Amazon Resource Name (ARN) of the cluster.
-
Get
Cluster Certificate Authority Nested attribute containing
certificate-authority-datafor your cluster.- created
At string The Unix epoch time stamp in seconds for when the cluster was created.
- enabled
Cluster string[]Log Types 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
Get
Cluster Identity[] 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.Clusterresource documentation.- name string
- platform
Version string The platform version for the cluster.
- role
Arn 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.- {[key: string]: string}
Key-value map of resource tags.
- version string
The Kubernetes server version for the cluster.
- vpc
Config GetCluster Vpc Config Nested list containing VPC configuration for the cluster.
- arn str
The Amazon Resource Name (ARN) of the cluster.
-
Dict[Get
Cluster Certificate Authority] Nested attribute containing
certificate-authority-datafor your cluster.- created_
at str The Unix epoch time stamp in seconds for when the cluster was created.
- enabled_
cluster_ List[str]log_ types 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[Get
Cluster Identity] 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.Clusterresource 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.- Dict[str, str]
Key-value map of resource tags.
- version str
The Kubernetes server version for the cluster.
- vpc_
config Dict[GetCluster Vpc Config] 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.
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<Get
Cluster Identity Oidc Args> Nested attribute containing OpenID Connect identity provider information for the cluster.
- Oidcs
[]Get
Cluster Identity Oidc Nested attribute containing OpenID Connect identity provider information for the cluster.
- oidcs
Get
Cluster Identity Oidc[] Nested attribute containing OpenID Connect identity provider information for the cluster.
- oidcs
List[Get
Cluster Identity Oidc] 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.
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.
- Cluster
Security stringGroup Id The cluster security group that was created by Amazon EKS for the cluster.
- Endpoint
Private boolAccess Indicates whether or not the Amazon EKS private API server endpoint is enabled.
- Endpoint
Public boolAccess Indicates whether or not the Amazon EKS public API server endpoint is enabled.
- Public
Access List<string>Cidrs List of CIDR blocks. Indicates which CIDR blocks can access the Amazon EKS public API server endpoint.
- Security
Group List<string>Ids List of security group IDs
- Subnet
Ids List<string> List of subnet IDs
- Vpc
Id string The VPC associated with your cluster.
- Cluster
Security stringGroup Id The cluster security group that was created by Amazon EKS for the cluster.
- Endpoint
Private boolAccess Indicates whether or not the Amazon EKS private API server endpoint is enabled.
- Endpoint
Public boolAccess Indicates whether or not the Amazon EKS public API server endpoint is enabled.
- Public
Access []stringCidrs List of CIDR blocks. Indicates which CIDR blocks can access the Amazon EKS public API server endpoint.
- Security
Group []stringIds List of security group IDs
- Subnet
Ids []string List of subnet IDs
- Vpc
Id string The VPC associated with your cluster.
- cluster
Security stringGroup Id The cluster security group that was created by Amazon EKS for the cluster.
- endpoint
Private booleanAccess Indicates whether or not the Amazon EKS private API server endpoint is enabled.
- endpoint
Public booleanAccess Indicates whether or not the Amazon EKS public API server endpoint is enabled.
- public
Access string[]Cidrs List of CIDR blocks. Indicates which CIDR blocks can access the Amazon EKS public API server endpoint.
- security
Group string[]Ids List of security group IDs
- subnet
Ids string[] List of subnet IDs
- vpc
Id string The VPC associated with your cluster.
- cluster
Security strGroup Id The cluster security group that was created by Amazon EKS for the cluster.
- endpoint
Private boolAccess Indicates whether or not the Amazon EKS private API server endpoint is enabled.
- endpoint
Public boolAccess Indicates whether or not the Amazon EKS public API server endpoint is enabled.
- public
Access List[str]Cidrs List of CIDR blocks. Indicates which CIDR blocks can access the Amazon EKS public API server endpoint.
- security_
group_ List[str]ids 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
awsTerraform Provider.