Skip to content

Commit

Permalink
Add missing serverless.example.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
martijngastkemper committed Nov 2, 2023
1 parent 5913370 commit 73b1337
Showing 1 changed file with 44 additions and 0 deletions.
44 changes: 44 additions & 0 deletions serverless.example.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
service: SERVICE_NAME

configValidationMode: error

package:
patterns:
- "!**"
- "node_modules/**"
- "index.js"
- "util/**"

params:
default:
image_quality: 80
bucket: BUCKET

provider:
name: aws
iam:
role:
statements:
- Effect: "Allow"
Action:
- "s3:GetObject"
- "s3:PutObject"
Resource:
Fn::Join:
- ""
- - "arn:aws:s3:::"
- ${param:bucket}
- "/*"
runtime: nodejs18.x
versionFunctions: false
deploymentBucket:
name: serverless.deployments.grrr
environment:
BUCKET: ${param:bucket}
IMAGE_QUALITY: ${param:image_quality}

functions:
main:
handler: index.handler
description: "Scale images at runtime."
url: true

0 comments on commit 73b1337

Please sign in to comment.