Spaces:
Running
on
Zero
Running
on
Zero
File size: 581 Bytes
185f702 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 |
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 |