-
Notifications
You must be signed in to change notification settings - Fork 53
/
serverless.yml
39 lines (35 loc) · 1.03 KB
/
serverless.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
# serverless.yml
service: trap
provider:
name: aws
runtime: python2.7
stage: dev
region: ap-southeast-2
memorySize: 128
#profile: dev-account
## Lambda function permissions
## S3 permissions are needed when you want to load the config from S3, or store the logs to S3
## You can set permission policy statements:
iamRoleStatements:
- Effect: Allow
Action:
- s3:Get*
- s3:List*
Resource: "*"
## OR you can overwrite the default IAM role and use an existing one:
#role: arn:aws:iam::YourAccountNumber:role/YourIamRole
functions:
honeylambda:
handler: handler.honeylambda
## Function level environment variable
environment:
## Load configuration from 'local' file or 's3' bucket
configFile: s3
## Specify the S3 bucket to load the config file from
## Make sure your bucket is in the same region as Lambda function
s3Bucket: yours3bucket
s3Key: honeyLambda/config.json
events:
- http:
path: v1/get-pass
method: get