Skip to main content

Amazon EKS Cluster

An EKS cluster

This example lives in the pulumi/examples repository. Check out just this directory to use it:

Get started with this example
git clone --filter=blob:none --sparse https://github.com/pulumi/examples pulumi-examples
git -C pulumi-examples sparse-checkout set aws-yaml-eks
cd pulumi-examples/aws-yaml-eks

This example deploys an EKS Kubernetes cluster inside the default AWS VPC.

Deploying the App#

To deploy your infrastructure, follow the below steps.

Prerequisites#

  1. Install Pulumi
  2. Configure Pulumi for AWS

Deploying and running the program#

  1. Create a new stack:

    $ pulumi stack init dev
  2. Set the AWS region:

    $ pulumi config set aws:region us-east-2
  3. Run pulumi up to preview and deploy changes:

    $ pulumi up
    Previewing changes:
    ...
    Performing changes:
    ...
    Resources:
    + 28 created
    Duration: 10m0s
  4. Check the deployed kubeconfig:

    $ pulumi stack output kubeconfig
    {"apiVersion":"v1","clusters":[{"cluster":{"certificate-authority-data":"LS0tLS1CRUdJTiBDR...

Related

The infrastructure as code platform for any cloud.