Amazon EKS Cluster

View Code

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...