Eslam A. Hefnawy 14fc721876 updated docs
2018-06-20 15:48:00 +03:00
..
2018-06-20 15:48:00 +03:00

Read this on the main serverless docs site

Serverless Platform (Beta)

The Serverless Platform is currently in experimental beta. If you'd like to participate in the beta, simply follow the instructions below.

Set-Up

Make sure you have Node.js installed and run:

$ npm i serverless -g

Then, check the version to make sure you are using V1.20.0, or later:

$ serverless -v

Usage

First, register or log in to the Serverless Platform in via the CLI

$ serverless login

After logging into the platform, make a note of your tenant, and create a new application by clicking on "+ App" button in the applications page.

Serverless Platform - Tenant Serverless Platform - Create Application

After creating your serverless application, add this application and your tenant to your service serverless.yml file:

service: my-service

tenant: eahefnawy
app: my-app

provider:
  name: aws
  runtime: nodejs6.10

functions:
  hello:
    handler: handler.hello
    events:
      - hello.world
      - http:
          path: hello/world
          method: post
          cors: true

Now that you've logged in and added your tenant and app, every time you deploy, your service will be published privately to the Serverless Platform:

$ serverless deploy

Then visit https://dashboard.serverless.com/ in your browser to view and manage your service.