#!/bin/bash aws lambda create-function \ --function-name bashFunction \ --role arn:aws:iam::XXXXX:role/bashFunctionRole \ --handler index.handler \ --runtime provided \ --layers arn:aws:lambda:eu-west-1:744348701589:layer:bash:8 \ --zip-file fileb://list_buckets.zip