Testing AWS Lambda runtime
To reproduce AWS Lambda environments, use Amazon's official lambda images in your tasks.
AWS Lambda-Mimicking Task - Python
jobs:- name: test-amazon-lambdaplan:- task: get-boto3-versionconfig:platform: linuximage_resource:type: docker-imagesource:repository: amazon/aws-lambda-pythonparams:PYTHONPATH: /var/runtimerun:path: python3args:- -c- |import boto3print(f"Latest Amazon's aws-lambda-python boto3 version is {boto3.__version__}")
The task run produces the following output:
Latest Amazon's aws-lambda-python boto3 version is 1.18.55