service: service

configValidationMode: error
frameworkVersion: '*'

provider:
  name: aws
  runtime: nodejs12.x
  lambdaHashingVersion: 20201221

resources:
  Resources:
    HttpApi:
      Type: AWS::ApiGatewayV2::Api
      Properties:
        Name: dev-${self:service}
        ProtocolType: HTTP
    HttpApiStage:
      Type: AWS::ApiGatewayV2::Stage
      Properties:
        ApiId:
          Ref: HttpApi
        StageName: $default
        AutoDeploy: true
  Outputs:
    HttpApiId:
      Value:
        Ref: HttpApi
