service: <%= serviceName %>

frameworkVersion: '3'

custom:
  localstack:
    stages:
      - local

provider:
  name: aws
  runtime: nodejs16.x
  stage: ${opt:stage, 'dev'}
  region: eu-west-1
  memorySize: 256
#  apiGateway:
#    restApiId: xxxxxxxxxx # REST API resource ID. Default is generated by the framework
#    restApiRootResourceId: xxxxxxxxxx # Root resource, represent as / path
  environment:
    SERVICE_NAME: ${env:SERVICE_NAME}


functions:
  hello:
    handler: src/handlers/hello.handler
#    events:
#      - sns: arn:xxx
#      - httpApi:
#          method: POST
#          path: /post/just/to/this/path

plugins:
  - serverless-localstack

useDotenv: true
