Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
2 contributors

Users who have contributed to this file

@aknuds1 @chief-wizard
executable file 39 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"
You can’t perform that action at this time.