September 2018
Intermediate to advanced
386 pages
11h 17m
English
Usually, a greenfield Serverless system should be created on these lines from the get-go. We will start with a barebones serverless.yaml and keep adding to it as we create the infrastructure. The base template is as follows:
service: lets-poll-api-with-serverless-fwcustom: accountId: AWS::AccountId documentation: ${file(./resources/api/api.yml)}frameworkVersion: ">=1.0.0 <2.0.0"plugins:- serverless-cf-vars- serverless-aws-documentation- serverless-reqvalidator-pluginprovider: name: aws runtime: java8 stage: ${opt:stage,'beta'} region: ${opt:region,'ap-south-1'} profile: ${opt:profile,'lets-poll-default'} apiKeys: - letspoll-${self:provider.stage}-api-key usagePlan: quota: limit: 5000 offset: 2 period: MONTH throttle: ...
Read now
Unlock full access