Try AWS Native preview for resources not in the classic version.
AWS Golang EKS Cluster
Try AWS Native preview for resources not in the classic version.
This example creates an AWS EKS Cluster and deploys a sample container application to it
Deploying the App
To deploy your infrastructure, follow the below steps.
Prerequisites
Steps
After cloning this repo, run these commands from the working directory:
Create a new stack, which is an isolated deployment target for this example:
$ pulumi stack init devSet your desired AWS region:
$ pulumi config set aws:region us-east-1 # any valid AWS region will workExecute the Pulumi program to create our EKS Cluster:
pulumi upAfter 10-15 minutes, your cluster will be ready, and the kubeconfig JSON you’ll use to connect to the cluster will be available as an output. You can save this kubeconfig to a file like so:
$ pulumi stack output kubeconfig --show-secrets >kubeconfig.jsonOnce you have this file in hand, you can interact with your new cluster as usual via
kubectl:$ KUBECONFIG=./kubeconfig.json kubectl get nodesEnsure that the application is running as expected:
$ curl $(pulumi stack output url)Afterwards, destroy your stack and remove it:
pulumi destroy --yes pulumi stack rm --yes
Try AWS Native preview for resources not in the classic version.