JSPM

@aws-cdk/aws-eks

0.39.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 7013
  • Score
    100M100P100Q37005F
  • License Apache-2.0

The CDK Construct Library for AWS::EKS

Package Exports

  • @aws-cdk/aws-eks

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@aws-cdk/aws-eks) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

Amazon EKS Construct Library


Stability: Experimental

This is a developer preview (public beta) module. Releases might lack important features and might have future breaking changes.

This API is still under active development and subject to non-backward compatible changes or removal in any future version. Use of the API is not recommended in production environments. Experimental APIs are not subject to the Semantic Versioning model.


This construct library allows you to define and create Amazon Elastic Container Service for Kubernetes (EKS) clusters programmatically.

Example

The following example shows how to start an EKS cluster and how to add worker nodes to it:

starting a cluster example

After deploying the previous CDK app you still need to configure kubectl and manually add the nodes to your cluster, as described in the EKS user guide.

SSH into your nodes

If you want to be able to SSH into your worker nodes, you must already have an SSH key in the region you're connecting to and pass it, and you must be able to connect to the hosts (meaning they must have a public IP and you should be allowed to connect to them on port 22):

ssh into nodes example

If you want to SSH into nodes in a private subnet, you should set up a bastion host in a public subnet. That setup is recommended, but is unfortunately beyond the scope of this documentation.

Roadmap

  • Add ability to start tasks on clusters using CDK (similar to ECS's "Service" concept).
  • Describe how to set up AutoScaling (how to combine EC2 and Kubernetes scaling)