Some useful docker images for utilizing the ArcGIS API for Python in your workflows
To use this image, setup your dockerfile like:
FROM ghcr.io/esri/arcgis-python-api-lambda
COPY app.py ${LAMBDA_TASK_ROOT}
your app.py should have a handler method:
import arcgis
def handler(event, context):
"""
AWS Lambda Handler
"""
print(f"Hello from AWS Lambda using ArcGIS API for Python {arcgis.__version__}!")
Push to your private AWS ECR instance, and configure lambda to run from this container image. As of this writing, public AWS ECR instances are not supported for lambda.