Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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.

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
```