Skip to content
Permalink
master
Switch branches/tags
Go to file
 
 
Cannot retrieve contributors at this time
executable file 38 lines (33 sloc) 675 Bytes
service: image-resizing-python
provider:
name: aws
runtime: python2.7
region: eu-west-1
iamRoleStatements:
- Effect: Allow
Action:
- s3:*
Resource: '*'
functions:
resize:
handler: handler.call
environment:
BUCKET: resized-images-python
REGION: eu-west-1
events:
- http:
path: /{size}/{image}
method: get
resources:
Resources:
ResizedImages:
Type: AWS::S3::Bucket
Properties:
BucketName: resized-images-python
plugins:
- serverless-s3-local
- serverless-offline
- serverless-python-requirements
custom:
pythonRequirements:
dockerizePip: "non-linux"