Skip to content

Instantly share code, notes, and snippets.

@thanakijwanavit
Created July 23, 2020 17:44
Show Gist options
  • Save thanakijwanavit/1afd82768de7962e07c1ea8b76fe7241 to your computer and use it in GitHub Desktop.
Save thanakijwanavit/1afd82768de7962e07c1ea8b76fe7241 to your computer and use it in GitHub Desktop.
AWSTemplateFormatVersion: '2010-09-09'
Transform: AWS::Serverless-2016-10-31
Description: >
villa-remove-bg
Sample SAM Template for villa-remove-bg
# More info about Globals: https://github.com/awslabs/serverless-application-model/blob/master/docs/globals.rst
Globals:
Function:
Timeout: 3
Resources:
ExecuteBgRemove:
Type: AWS::Serverless::Function # More info about Function Resource: https://github.com/awslabs/serverless-application-model/blob/master/versions/2016-10-31.md#awsserverlessfunction
Properties:
CodeUri: remove-bg/
Handler: app.removeAll
Runtime: python3.8
Events:
S3Upload:
Type: S3
Properties:
Bucket: "villa-background-remove"
Events: s3:ObjectCreated:*
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment