Spaces:
Running
on
Zero
Running
on
Zero
AWSTemplateFormatVersion: '2010-09-09' | |
Transform: AWS::Serverless-2016-10-31 | |
Resources: | |
MyFunction: | |
Type: AWS::Serverless::Function | |
Properties: | |
FunctionName: !Sub 'my-function-${AWS::Region}' | |
Runtime: python3.8 | |
Handler: app.wsgi.application | |
Code: | |
S3Bucket: !Sub 'my-bucket-${AWS::Region}' | |
S3ObjectVersion: !Sub 'my-object-version' | |
Environment: | |
Variables: | |
DJANGO_SETTINGS_MODULE: app.settings | |
Events: | |
MyApi: | |
Type: Api | |
Properties: | |
Path: / | |
Method: get |