Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/lucasroesler/botopush
Very minimal example of useing the boto3 Python package and the python3-http template.
https://github.com/lucasroesler/botopush
boto openfaas openfaas-function python3 python3-http
Last synced: 26 days ago
JSON representation
Very minimal example of useing the boto3 Python package and the python3-http template.
- Host: GitHub
- URL: https://github.com/lucasroesler/botopush
- Owner: LucasRoesler
- Created: 2020-01-06T13:26:18.000Z (about 5 years ago)
- Default Branch: main
- Last Pushed: 2020-06-14T07:59:42.000Z (over 4 years ago)
- Last Synced: 2024-12-07T08:42:19.911Z (about 1 month ago)
- Topics: boto, openfaas, openfaas-function, python3, python3-http
- Language: Python
- Homepage:
- Size: 1.95 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# botopush OpenFaaS Example
Very minimal example of useing the `boto3` Python package and the `python3-http` template.
This will accept an arbtrary payload and save it to an S3 bucket
## Build
Just use the `faas-cli`
```sh
faas-cli build --tag=describe
```## Deploy
This requires an the AWS credentials to be created as a secret. First, create a text file called `botopush-aws` so that it looks like this```txt
[default]
aws_access_key_id=
aws_secret_access_key=
```Make sure that these credentials have access to the required bucket and update the stack file, replacing `botopush-example`.
Then use the faas-cli to deploy the secret:
```sh
faas-cli secret create -n beta botopush-aws --from-file `pwd`/botopush-aws
```Once the secret is deployed, you can deploy the function using
```sh
faas-cli deploy
```