Created
September 21, 2022 15:44
-
-
Save javatodev/a1d354f31f347cc11a2e4b0547a252c7 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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