Skip to content
This repository has been archived by the owner on Feb 1, 2023. It is now read-only.

Latest commit

 

History

History
32 lines (25 loc) · 1.2 KB

endpoints.md

File metadata and controls

32 lines (25 loc) · 1.2 KB

Spotinst Functions - Endpoints

You are able to set your custom endpoint path in the serverless.yml file if you do not want to use the console or API. You will have to set up your environment Alias in the console but here you can set the path and method for your individual functions to be mapped to.

Here is a sample function from a yml file. As you can see at the bottom of the file we have listed an endpoint with a path and method. Both of these will need to be set in order to be deployed properly

  hello:
    runtime: nodejs8.3
    handler: handler.main
    memory: 128
    timeout: 30
    access: public
    endpoint: 
        path: /home
        method: get
 

For more information on how to set up endpoint alias and patterns check out our documentation here