Skip to content

Instantly share code, notes, and snippets.

@darrenmeehan
Created March 9, 2023 14:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save darrenmeehan/3c3d63c020dfdd9be35b1013977d4340 to your computer and use it in GitHub Desktop.
Save darrenmeehan/3c3d63c020dfdd9be35b1013977d4340 to your computer and use it in GitHub Desktop.
Specific awscli version installed along with latest Python3 AWS Lambda base image
FROM public.ecr.aws/lambda/python:3.9
# Get the latest version from https://raw.githubusercontent.com/aws/aws-cli/v2/CHANGELOG.rst
ARG AWSCLI_VERSION="2.11.1"
RUN yum update && yum install unzip -y
RUN curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64-2.0.30.zip" -o "awscliv2.zip" \
&& unzip awscliv2.zip \
&& ./aws/install \
&& rm -rf ./aws
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment