File tree 3 files changed +74
-0
lines changed
3 files changed +74
-0
lines changed Original file line number Diff line number Diff line change
1
+ {
2
+ // Use IntelliSense to learn about possible attributes.
3
+ // Hover to view descriptions of existing attributes.
4
+ // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
5
+ "version" : " 0.2.0" ,
6
+ "configurations" : [
7
+ {
8
+ "type" : " node" ,
9
+ "request" : " attach" ,
10
+ "name" : " Attach to lambda" ,
11
+ "address" : " localhost" ,
12
+ "port" : 9999 ,
13
+ "localRoot" : " ${workspaceRoot}" ,
14
+ "remoteRoot" : " /var/task" ,
15
+ "protocol" : " inspector" ,
16
+ "stopOnEntry" : false
17
+ },
18
+ {
19
+ "type" : " aws-sam" ,
20
+ "request" : " direct-invoke" ,
21
+ "name" : " webhooks" ,
22
+ "invokeTarget" : {
23
+ "target" : " template" ,
24
+ "templatePath" : " ${workspaceFolder}/template.yaml" ,
25
+ "logicalId" : " webhooks"
26
+ },
27
+ "lambda" : {
28
+ "payload" : {},
29
+ "environmentVariables" : {}
30
+ }
31
+ }
32
+ ]
33
+ }
Original file line number Diff line number Diff line change
1
+ AWSTemplateFormatVersion : " 2010-09-09"
2
+ Transform : AWS::Serverless-2016-10-31
3
+ Description : Serverless GitHub app
4
+
5
+ Parameters :
6
+ githubAppId :
7
+ Description : The App ID of your GitHub app
8
+ Type : String
9
+ githubWebhookSecret :
10
+ Description : The webhook secret of your GitHub app
11
+ Type : String
12
+ githubPrivateKey :
13
+ Description : The private key of your GitHub app
14
+ Type : String
15
+
16
+ Resources :
17
+ webhooks :
18
+ Type : AWS::Serverless::Function
19
+ Properties :
20
+ FunctionName : !Sub ${AWS::StackName}-webhooks
21
+ Description : Basic Auth Funtion
22
+ CodeUri : .
23
+ Handler : handler.webhooks
24
+ Runtime : nodejs14.x
25
+ MemorySize : 256
26
+ Timeout : 20
27
+ Events :
28
+ ApiEvent :
29
+ Type : HttpApi
30
+ Environment :
31
+ Variables :
32
+ APP_ID : !Ref githubAppId
33
+ WEBHOOK_SECRET : !Ref githubWebhookSecret
34
+ PRIVATE_KEY : !Ref githubPrivateKey
Original file line number Diff line number Diff line change
1
+ {
2
+ "webhooks" : {
3
+ "APP_ID" : " " ,
4
+ "WEBHOOK_SECRET" : " " ,
5
+ "PRIVATE_KEY" : " "
6
+ }
7
+ }
You can’t perform that action at this time.
0 commit comments