Docker image responsible for updating an EKS cluster by a lambda function.
416
Docker image responsible for updating an EKS cluster by a lambda function.
It's composed by:
Dockerfile
It's a Dockerfile using multi-stage builds in which contains 2 stages: builder and runtime. Lambda is composed of a runtime and an execution context.
The builder stage is responsible for installing kubectl, aws cli and helm binaries to be used from the Lambda itself.
The runtime stage is responsible for creating a provided lambda runtime in which will be present the binaries installed from the builder stage.
It can be generated by running the following command:
#!/bin/bash
export DOCKER_REPOSITORY=renaalve
export DOCKER_IMAGE=aws-lambda-layer-kubectl
export DOCKER_IMAGE_TAG=latest
docker build -f Dockerfile -t ${DOCKER_REPOSITORY}/${IMAGE_NAME}:${IMAGE_TAG} .
This image will be responsible for generating the respective lambda layer intended. It will generate a zip file on /root/lambda-layer.zip.
Run the following command to get the lambda layer and use it to create a new lambda layer on AWS Console:
#!/bin/bash
export DOCKER_REPOSITORY=renaalve
export DOCKER_IMAGE=aws-lambda-layer-kubectl
export DOCKER_IMAGE_TAG=latest
docker cp $(docker run -d ${DOCKER_REPOSITORY}/${IMAGE_NAME}:${IMAGE_TAG}):/root/lambda-layer.zip .
Content type
Image
Digest
Size
348.3 MB
Last updated
over 6 years ago
docker pull renaalve/aws-lambda-layer-kubectl