Skip to content

Instantly share code, notes, and snippets.

@richardgrantserverless
Created April 1, 2022 02:59
# serverless.yml
service: products-service
provider:
name: aws
runtime: python3.6
stage: dev
region: us-east-1
environment:
SERVICE_NAME: ${self:service}
functions:
hello:
handler: handler.hello
events:
- http: GET hello
plugins:
- serverless-domain-manager
custom:
customDomain:
domainName: 'api.mycompany.com' # Change this to your domain.
basePath: 'products' # This will be prefixed to all routes
stage: ${self:provider.stage}
createRoute53Record: true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment