https://github.com/kohrongying/turtmap
https://github.com/kohrongying/turtmap
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/kohrongying/turtmap
- Owner: kohrongying
- Created: 2021-05-03T09:34:21.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2021-05-05T08:43:19.000Z (about 4 years ago)
- Last Synced: 2025-01-27T22:14:08.024Z (4 months ago)
- Language: Python
- Size: 1.32 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Image as a service
Generate dynamic text over a fixed image based on query parameters
## Deploying Lambda Layer
[Reference](https://aws.amazon.com/premiumsupport/knowledge-center/lambda-layer-simulated-docker/)
```bash
mkdir python
docker run -v "$PWD":/var/task "public.ecr.aws/sam/build-python3.7" /bin/sh -c "pip install -r requirements.txt -t python/; exit"zip -r mypythonlibs.zip python > /dev/null
aws lambda publish-layer-version --layer-name LAYER_NAME --zip-file fileb://mypythonlibs.zip --compatible-runtimes "python3.7"
aws lambda update-function-configuration --layers arn:aws:lambda:ap-southeast-1:ACCOUNT_ID:layer:PIL-layer:LAYER_VERSION --function-name FUNCTION_NAME
```