Skip to content

adamdullenty/serverless-pro-example

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Serverless Pro Example

Requirements

  • A Github Account.
  • An AWS Account:
    • If you need to sign up one you will need a credit card.

Getting Started

Account Setups

Creating a Service

You are now in the serverless dashboard and here you can Add Apps.

Apps can contain many services (e.g. many serverless.yml declarations, and be deployed to multiple stages!)

  • Click the Add App button
  • Select a deployment profile and name the App
    • If you don't have a deployment profile you can click the profiles button to get started.

Our first service will be connected to Github and to our AWS Account.

  • Click Add Service and proceed through the GUI.
    • If you can't see the serverless github connection, you'll need to click on install the Serverless application on Github button.

    • Select your fork of this repository and enable the following:
      • Deploy to default stage from master
      • Advanced Settings
        • Deploy branches to a stage named after the branch.
      • Save this configuration and head into the Application Services tab.

Automated Deploys

Now the app is configured it will need to be deployed. If it hasn't already you can click on the service under all services and click deploy. This will pull the app from github master branch and deploy it.

Automated deploys will occur on Github branches, but there is a caveat - branch names should be small!!. The IAMRole name of Cloudformation is limited to 60 characters, and this appends the app name e.g. serverless-pro-example#{github_branch_name}.

Lets create a branch locally and push it to get a deploy.

git checkout -b patch/update-01
git commit --allow-empty -m "Trigger deploy"
git push

Once you open up a Pull request you will see the deploy is happening in an automated way.

Automated deploys

Each of these is a separate stage, and you can hop onto the application tracking.

Testing from Serverless PRO Dashboard

When deploying a branch you can get a temporary URL and can debug using any API client.

Testing from the command line

Analytics

You get a dashboard for every stage that you deploy which can be unique for your branch.

The data is scraped out of AWS by the serverless CloudFormation setup, and set to the dashboard, so there is a little lag.

Analytics dashboard

Alerts

Alerts are configured at the Application level and will apply to all services inside the Application.

Application Errors

You can notify through Slack or Email.

These alerts are not exception trackers like Sentry, they are performance monitors like for lambda

About

This is an example of setting up serverless pro with an attached AWS account

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%