serverless-plugin-alb
Version:
Serverless plugin for Application Load Balancers
56 lines (50 loc) • 861 B
YAML
service: lambda-alb-example
plugins:
localPath: ..
modules:
- index
custom:
alb:
listenerArn: <your alb http listener arn>
package:
excludeDevDependencies: false
individually: true
provider:
name: aws
runtime: nodejs8.10
region: eu-west-1
stage: dev
functions:
Hello:
handler: hello.handler
package:
include:
- ./hello.js
events:
- alb:
priority: 1
conditions:
path: /hello
Foo:
handler: hello.handler
package:
include:
- ./hello.js
events:
- alb:
priority: 2
conditions:
path: /foo
method: POST
Bar:
handler: hello.handler
package:
include:
- ./hello.js
events:
- alb:
priority: 3
conditions:
path: /bar
query:
bar: true