File tree 1 file changed +25
-1
lines changed
1 file changed +25
-1
lines changed Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ function inside a specific VPC, make sure you set up the role correctly to allow
26
26
27
27
Note also the ` ignore ` entry is an array of regular expression strings
28
28
used to match against the relative paths - be careful to quote accordingly.
29
- For example, a traditional ` *.txt ` "glob" is matched by the JSON string:
29
+ For example, a traditional ` *.txt ` "glob" is matched by the JSON string:
30
30
` ".*\\.txt$" ` (or just ` "\\.txt$" ` ).
31
31
32
32
Example ` lambda.json ` file:
@@ -57,6 +57,30 @@ Example `lambda.json` file:
57
57
}
58
58
```
59
59
60
+ You can also optionally setup a subscription to a Kinesis stream for your
61
+ lambda using the ` subscription ` field as in the following sample configuration.
62
+
63
+ ``` json
64
+ {
65
+ "name" : " myFunction" ,
66
+ "description" : " It does things" ,
67
+ "region" : " us-east-1" ,
68
+ "runtime" : " python2.7" ,
69
+ "handler" : " function.lambda_handler" ,
70
+ "role" : " arn:aws:iam::00000000000:role/lambda_basic_execution" ,
71
+ "requirements" : [" pygithub" ],
72
+ "timeout" : 30 ,
73
+ "memory" : 512 ,
74
+ "subscription" : {
75
+ "kinesis" : {
76
+ "stream" : " arn:aws:kinesis:eu-west-1:000000000000:stream/services" ,
77
+ "batch_size" : 10
78
+ }
79
+ }
80
+ }
81
+ ```
82
+
83
+
60
84
### Command Line Usage
61
85
To package and upload simply run the command from within your lambda directory or
62
86
with the directory as an option.
You can’t perform that action at this time.
0 commit comments