Spaces:
Running
on
Zero
Running
on
Zero
File size: 562 Bytes
185f702 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 |
AWSTemplateFormatVersion: '2010-09-09'
Transform: AWS::Serverless-2016-10-31
Resources:
CRUDFunction:
Type: AWS::Serverless::Function
Properties:
FunctionName: !Sub 'crud-function-${AWS::Region}'
Runtime: python3.9
Handler: app.wsgi.application
Code:
S3Bucket: !Sub 'crud-bucket-${AWS::Region}'
S3ObjectKey: 'app.zip'
Environment:
BUCKET_NAME: !Sub 'crud-bucket-${AWS::Region}'
Events:
CrudApi:
Type: Api
Properties:
Path: /crud
Method: ANY |