How to use a Lambda to manage EKS cluster resources without a hard-coded token, but just roles.

Lambda + Kuberenets

The scope of this blog post is to show a simple solution, written in Node.js, about how to use a Lambda to control Kubernetes resources in EKS using K8s API client and without hard-coding token or cluster configuration.

The main idea regarding this Lambda function is to provide a secure way to make a Kubernetes deployment from a pipeline that could be internal or external to the VPC. The deployment could be triggered by a pipeline that only needs permission to invoke the Lambda or access an API Gateway backed by this function. …

Edoardo Randazzo

Cloud Engineer

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store