Skip to content
This repository has been archived by the owner on Sep 25, 2023. It is now read-only.

optimizely/serverless-sendToSlack

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

Serverless: https://serverless.com/framework/docs/providers/aws/guide/installation/

Specifying an S3 Bucket

It is recommended that you setup a specific bucket in S3 for Serverless to keep the Cloudformation templates in. This will need to be set in your serverless.yml file, and must be unique. If you choose not to set a specific bucket (by removing the deploymentBucket key), a new one will be created on every deploy.

Vendoring Dependencies

To install python package dependencies (requirements.txt) use the included build.sh script:

$ ./build.sh

This runs an amazonlinux docker container, matching the environment of AWS Lambda, ensuring dependencies are compiled to the correct OS.

These dependencies won't work when invoking the function locally if you're developing on OSX. In that case you should create a virtualenv and install the dependencies manually:

$ virtualenv env
$ source env/bin/activate
$ pip install -r requirements.txt

Deployment

Start by (Vendoring Dependencies)[#vendoring-dependencies], then install serverless:

$ npm install -g serverless

Deploy the function with:

$ serverless deploy

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages