Created
September 21, 2022 15:23
-
-
Save javatodev/b59d18e3b69ff63609da7afc047f2956 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: file-conversion-app | |
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:::file-conversion-bucket/*" | |
functions: | |
fileConversion: | |
handler: handler.fileConversion | |
events: | |
- httpApi: | |
path: / | |
method: get |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment