This repo contains a CloudFormation YAML script that creates a Linux EC2 Instance, builds and publish an AWS Python Lambda Layer.
Read more about AWS Lambda Layers here.
You can deploy the CloudFormation Stack using AWS CLI. For more information about aws cloudformation commands visit here
aws cloudformation deploy --template-file <path_to_file> --stack-name <stack_name> --capabilities CAPABILITY_NAMED_IAM