| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
This project demonstrates how a simple Flask API can be deployed to AWS Lambda using the Serverless Framework.
Lambda function needs to have API_KEY variable set up. To do this, we utilize AWS Systems Manager Parameter Store. The variable can be set with:
aws ssm put-parameter --name "/flask-serverless-lambda/api-key" --value "your-api-key-value" --type SecureStringThe value does not matter.
cp env.example .envsource .envdocker compose builddocker compose up -dhttp://127.0.0.1:${PORT}/home
To enter the container shell:
docker compose exec app bashTo deploy the API using Serverless Framework, run:
serverless deployFor GitHub Actions and manual deployments to work correctly, ensure that all necessary environment variables are set as GitHub Action Secrets.
This project is licensed under the MIT License.
docker compose up -d --buildserverless logs -f function_name| Back | FazBrowse Home | New Git URL |