Skip to content

Instantly share code, notes, and snippets.

@javatodev
Created September 21, 2022 15:44
Show Gist options
  • Save javatodev/a1d354f31f347cc11a2e4b0547a252c7 to your computer and use it in GitHub Desktop.
Save javatodev/a1d354f31f347cc11a2e4b0547a252c7 to your computer and use it in GitHub Desktop.
service: image-processing-lambda
frameworkVersion: '3'
provider:
name: aws
runtime: nodejs14.x
timeout: 10
stage: dev
iam:
role:
statements:
- Effect: "Allow"
Action:
- "s3:GetObject"
- "s3:PutObject"
Resource: "arn:aws:s3:::<S3_BUCKET_NAME>/*"
functions:
processFile:
handler: handler.processFile
events:
- httpApi:
path: /
method: get
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment