Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/manhpham90vn/lambda-apps
https://github.com/manhpham90vn/lambda-apps
Last synced: 6 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/manhpham90vn/lambda-apps
- Owner: manhpham90vn
- Created: 2024-01-18T07:54:46.000Z (10 months ago)
- Default Branch: main
- Last Pushed: 2024-02-07T11:05:56.000Z (9 months ago)
- Last Synced: 2024-02-07T12:26:53.294Z (9 months ago)
- Language: Python
- Size: 14.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Lambda
## Version
```shell
Python 3.9.18
SAM CLI, version 1.107.0
```## Create venv
```shell
python -m venv venv
```## Active venv
```shell
source ./venv/bin/activate
```## Install dependency
```shell
pip install celery
```## Update requirements.txt
```shell
pip freeze > requirements.txt
```## Install from requirements.txt
```shell
pip install -r requirements.txt
```## Install sam
```shell
https://docs.aws.amazon.com/serverless-application-model/latest/developerguide/install-sam-cli.html
```## Validate
```shell
sam validate
```## Build
```shell
sam build --use-container
```## Invoke Local (need export QUEUE_URL)
```shell
sam local invoke ProducerFunction --event events/event.json```
## Invoke remote (not work)
```shell
sam remote invoke --stack-name lambda-apps ProducerFunction --event-file events/event.json
```## Deploy guided
```shell
sam deploy --guided
```## Deploy
```shell
sam deploy
```## Destroy
```shell
sam delete --stack-name lambda-apps
```## Fix bug docker for docker desktop app
```shell
export DOCKER_HOST=unix:///home/manh/.docker/desktop/docker.sock
```