Untitled

mail@pastecode.io avatar
unknown
plain_text
2 years ago
475 B
7
Indexable
Never
AWSTemplateFormatVersion: '2010-09-09'
Transform: AWS::Serverless-2016-10-31
Description: "Serverless Stack"
Resources:
  hello:
    Type: AWS::Serverless::Function
    Properties:
      Runtime: python3.7
      Handler: lambda.hello
      CodeUri: src/
      Events:
        Hello:
          Type: Api
          Properties:
            Path: /
            Method: get
Outputs:
  url:
    Value: !Sub https://${ServerlessRestApi}.execute-api.${AWS::Region}.amazonaws.com/Prod