Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kevinchisholm/d1799ce76bcf5a5d22b50652415af11e to your computer and use it in GitHub Desktop.
Save kevinchisholm/d1799ce76bcf5a5d22b50652415af11e to your computer and use it in GitHub Desktop.
service: my-service
plugins:
- serverless-domain-manager
provider:
name: aws
runtime: nodejs12.x
stage: ${opt:stage, "dev"}
custom:
customDomain:
basePath: 'orders'
createRoute53Record: true
stage: ${self:provider.stage}
domainName: XXX.YOUR-DOMAIN.com
certificateName: "*.YOUR-DOMAIN.com"
certificateArn: 'YOUR CERTIFICATE ARN GOES HERE'
functions:
getHats:
handler: handler.hats
events:
- http:
path: hats
method: get
cors: true
getShoes:
handler: handler.shoes
events:
- http:
path: shoes
method: get
cors: true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment