Skip to content
This repository has been archived by the owner on Feb 6, 2022. It is now read-only.

Latest commit

 

History

History
35 lines (22 loc) · 1017 Bytes

README.md

File metadata and controls

35 lines (22 loc) · 1017 Bytes

Serverless - AWS Python Docker

This project has been generated using the aws-nodejs-docker template from the Serverless framework.

For detailed instructions, please refer to the documentation.

Deployment instructions

Requirements: Docker. In order to build images locally and push them to ECR, you need to have Docker installed on your local machine. Please refer to official documentation.

In order to deploy your service, run the following command

sls deploy

Run your service

After successful deployment, you can test your service remotely by using the following command:

sls invoke --function hello

Run the function locally

$ docker-compose exec workspace python app.py --output=json --data='{"body": "中居正広のこおりつけ"}'

Run linters and unittests

$ docker-compose exec workspace poetry run tox