1. Packages
  2. AWS Classic
  3. How-to Guides
  4. eks-minimal

Try AWS Native preview for resources not in the classic version.

AWS Classic v6.32.0 published on Friday, Apr 19, 2024 by Pulumi

eks-minimal

aws logo

Try AWS Native preview for resources not in the classic version.

AWS Classic v6.32.0 published on Friday, Apr 19, 2024 by Pulumi

    View Code

    This example demonstrates consuming Pulumi AWS EKS Components from Java.

    The high-level Cluster component automatically provisions roles, security groups and other necessary resources with good defaults, making it easy to get started. For more information, checkout the relevant Pulumi blog

    Running the example

    1. Start a new stack:

      pulumi stack init dev
      
    2. Configure your AWS region, for example:

      pulumi config set aws:region us-east-1
      
    3. Deploy the example. Note it will take up to 10 minutes to provision the EKS cluster:

      pulumi up
      
    4. Access the Kubernetes Cluster using kubectl.

      To access your new Kubernetes cluster using kubectl, we need to setup the kubeconfig file and download kubectl. We can leverage the Pulumi stack output in the CLI, as Pulumi facilitates exporting these objects for us.

      $ pulumi stack output kubeconfig --show-secrets > kubeconfig
      $ export KUBECONFIG=$PWD/kubeconfig
      $ kubectl version
      $ kubectl cluster-info
      $ kubectl get nodes
      
    aws logo

    Try AWS Native preview for resources not in the classic version.

    AWS Classic v6.32.0 published on Friday, Apr 19, 2024 by Pulumi