service: service

configValidationMode: error
frameworkVersion: '*'

provider:
  name: aws
  runtime: nodejs16.x

functions:
  foo:
    handler: index.handler
    events:
      - cloudFront:
          eventType: origin-request
          origin: https://example.com
