Skip to content
This repository has been archived by the owner on Mar 20, 2024. It is now read-only.

putting this up for help #33

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@ npm-debug.log
.env
coverage
lib
.serverless
49 changes: 37 additions & 12 deletions .serverless/cloudformation-template-update-stack.json
Original file line number Diff line number Diff line change
Expand Up @@ -161,17 +161,18 @@
"S3Bucket": {
"Ref": "ServerlessDeploymentBucket"
},
"S3Key": "serverless/lambda-probot-express/dev/1638131020628-2021-11-28T20:23:40.628Z/lambda-probot-express.zip"
"S3Key": "serverless/lambda-probot-express/dev/1638582368546-2021-12-04T01:46:08.546Z/lambda-probot-express.zip"
},
"Handler": "handler.probot",
"Runtime": "nodejs14.x",
"Handler": "handler.webhooks",
"Runtime": "nodejs12.x",
"FunctionName": "lambda-probot-express-dev-router",
"MemorySize": 1024,
"Timeout": 6,
"Environment": {
"Variables": {
"WEBHOOK_SECRET": "my-secret",
"APP_ID": "154856",
"PRIVATE_KEY": "-----BEGIN RSA PRIVATE KEY-----\nMIIEpQIBAAKCAQEA9wuOx8tOT4JK7qQ3Ai3RMx7k7Aw7ho2KJeVRyLNG8g3TiBtN\npB+WIrQQ3NXqC1f55hnMokVSRvJOCtm/oyg60J0OSZ8e6BIXPDMfBBcKEEmTVmQi\nN5BK5tcgR0kZvahQKS9HCkzlTxEOemoFQhzKli0gNiaH93pmt6Aq6+Bf2yboczfW\n1qSYiJSeEjDTKUUgPOJMy9EzajYe6IuKOOva7DWruorw8YOfDGQ9Pcs470ft4NJ6\nbr7Q2sNbtBUWOc4wCWzMH7lv7bhjNlapNlYNKFWZCi2M2I0IcQwLiPpiI3KS/YK5\nDwo4g4h2NpkOORI2ytnaqyKZIR3kConY3tOTCwIDAQABAoI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nREzADzkZAoGAU0Vev9R1I2UTgpKYZgKiefmINx8YrQPBTmECnBboQhDUQefatHbs\n4fHpUfxNDj7gtrKUkPAiGtH9OhP/kaLOz4+Q1CKnX+3fr6HB6O80KeJrLUI6PVUj\nkHH7ig2tI7sYFELuMoRiIz03LMv4WaOUfrJqf+r9sdz8uLTcihqkcFs=\n-----END RSA PRIVATE KEY-----",
"LOG_FORMAT": "json"
}
},
Expand All @@ -186,14 +187,14 @@
"RouterLogGroup"
]
},
"RouterLambdaVersionnsYlp6eYucMpe4lKTC1cCoiJSMgwdGrCeEU8dvrXKU": {
"RouterLambdaVersiony6F4Efe86vJfA0ywo8AwuzEVNKOxZsOl02xS8MnAyE": {
"Type": "AWS::Lambda::Version",
"DeletionPolicy": "Retain",
"Properties": {
"FunctionName": {
"Ref": "RouterLambdaFunction"
},
"CodeSha256": "43n4ZQ8Ne/jCUyGZybNYFfHflnuPVxH5LEDsMzGF9Xw="
"CodeSha256": "7/EPPr3ZgBvS/mV8Im1aDaqcvAN/sr/tr5KWt1X1qxg="
}
},
"ApiGatewayRestApi": {
Expand All @@ -208,7 +209,7 @@
"Policy": ""
}
},
"ApiGatewayResourceProbot": {
"ApiGatewayResourceApi": {
"Type": "AWS::ApiGateway::Resource",
"Properties": {
"ParentId": {
Expand All @@ -217,19 +218,43 @@
"RootResourceId"
]
},
"PathPart": "probot",
"PathPart": "api",
"RestApiId": {
"Ref": "ApiGatewayRestApi"
}
}
},
"ApiGatewayMethodProbotPost": {
"ApiGatewayResourceApiGithub": {
"Type": "AWS::ApiGateway::Resource",
"Properties": {
"ParentId": {
"Ref": "ApiGatewayResourceApi"
},
"PathPart": "github",
"RestApiId": {
"Ref": "ApiGatewayRestApi"
}
}
},
"ApiGatewayResourceApiGithubWebhooks": {
"Type": "AWS::ApiGateway::Resource",
"Properties": {
"ParentId": {
"Ref": "ApiGatewayResourceApiGithub"
},
"PathPart": "webhooks",
"RestApiId": {
"Ref": "ApiGatewayRestApi"
}
}
},
"ApiGatewayMethodApiGithubWebhooksPost": {
"Type": "AWS::ApiGateway::Method",
"Properties": {
"HttpMethod": "POST",
"RequestParameters": {},
"ResourceId": {
"Ref": "ApiGatewayResourceProbot"
"Ref": "ApiGatewayResourceApiGithubWebhooks"
},
"RestApiId": {
"Ref": "ApiGatewayRestApi"
Expand Down Expand Up @@ -269,7 +294,7 @@
"RouterLambdaPermissionApiGateway"
]
},
"ApiGatewayDeployment1638131011036": {
"ApiGatewayDeployment1638582359084": {
"Type": "AWS::ApiGateway::Deployment",
"Properties": {
"RestApiId": {
Expand All @@ -278,7 +303,7 @@
"StageName": "dev"
},
"DependsOn": [
"ApiGatewayMethodProbotPost"
"ApiGatewayMethodApiGithubWebhooksPost"
]
},
"RouterLambdaPermissionApiGateway": {
Expand Down Expand Up @@ -331,7 +356,7 @@
"RouterLambdaFunctionQualifiedArn": {
"Description": "Current Lambda function version",
"Value": {
"Ref": "RouterLambdaVersionnsYlp6eYucMpe4lKTC1cCoiJSMgwdGrCeEU8dvrXKU"
"Ref": "RouterLambdaVersiony6F4Efe86vJfA0ywo8AwuzEVNKOxZsOl02xS8MnAyE"
},
"Export": {
"Name": "sls-lambda-probot-express-dev-RouterLambdaFunctionQualifiedArn"
Expand Down
Binary file modified .serverless/lambda-probot-express.zip
Binary file not shown.
62 changes: 44 additions & 18 deletions .serverless/serverless-state.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
},
"provider": {
"name": "aws",
"runtime": "nodejs14.x",
"runtime": "nodejs12.x",
"region": "us-east-1",
"stage": "dev",
"versionFunctions": true,
Expand Down Expand Up @@ -173,17 +173,18 @@
"S3Bucket": {
"Ref": "ServerlessDeploymentBucket"
},
"S3Key": "serverless/lambda-probot-express/dev/1638131020628-2021-11-28T20:23:40.628Z/lambda-probot-express.zip"
"S3Key": "serverless/lambda-probot-express/dev/1638582368546-2021-12-04T01:46:08.546Z/lambda-probot-express.zip"
},
"Handler": "handler.probot",
"Runtime": "nodejs14.x",
"Handler": "handler.webhooks",
"Runtime": "nodejs12.x",
"FunctionName": "lambda-probot-express-dev-router",
"MemorySize": 1024,
"Timeout": 6,
"Environment": {
"Variables": {
"WEBHOOK_SECRET": "my-secret",
"APP_ID": "154856",
"PRIVATE_KEY": "-----BEGIN RSA PRIVATE KEY-----\nMIIEpQIBAAKCAQEA9wuOx8tOT4JK7qQ3Ai3RMx7k7Aw7ho2KJeVRyLNG8g3TiBtN\npB+WIrQQ3NXqC1f55hnMokVSRvJOCtm/oyg60J0OSZ8e6BIXPDMfBBcKEEmTVmQi\nN5BK5tcgR0kZvahQKS9HCkzlTxEOemoFQhzKli0gNiaH93pmt6Aq6+Bf2yboczfW\n1qSYiJSeEjDTKUUgPOJMy9EzajYe6IuKOOva7DWruorw8YOfDGQ9Pcs470ft4NJ6\nbr7Q2sNbtBUWOc4wCWzMH7lv7bhjNlapNlYNKFWZCi2M2I0IcQwLiPpiI3KS/YK5\nDwo4g4h2NpkOORI2ytnaqyKZIR3kConY3tOTCwIDAQABAoIBAQDm/4eiihfPgKVQ\nP3ywLOdQRbMIhOekCPUEOkkewYO1EfiZa+5NaLuZ94VM+Ti/IqQo5DbUBL3KWQdg\nXfszNIrKRhD2BjOADGptf9+gk2p1kFaUkUztZ56h+sXT4iaPkLJj0DE9EGnaZLiE\n/l2sU/+aLNfRynWYkns5eCqqJEN9Ri34E9FF9sd8HlQHjkC0WACd6DwSmzLCBQW0\nylqRXJ3drD4VKb+fLXF2nPG8OKy92IFJyjZBHorWdXlofigT1KACYNT/bTA4LIt3\nTImZieCtxIz1Ajjk524BOFcfFM2w+/tAVxVKTcV2xDoEpGcrnRzEi5D505tzIA5I\n+XTrbgYBAoGBAP+APwYOWr9d2QAmP1G1+DEke1QUPZWdvWFxnkP1P8CJU/zZeuAK\nnC8EOW4uGdPoVCogxi2HVdmrgTVhh0OnKE8+ubJs/hQgzDkcrE3laJ4BVr7iQjjR\ntseToFavFlRbx+gTg5f8M3Zisl7DjkF4bUJFndH++qZ5iJDiTy591W5zAoGBAPeH\nFWJjMQ+hSLeQXK8GYW7v3BoGfDMh7a3ZhEU2eYIDZApPt+ITf8PVTt4yI6ej31Ck\nD4IyDROSLm6nE29OWbr/Xdj+yZje2W8QV1Y1+eQGWvsRh/Hf7yw96Yhe/N1/K8C4\nMMSxo8KCppCHGdtBw0QN0ngj6l2SWMLgiyaMbUsJAoGBAPenM2+HUmbTbJc8e3uU\nSnI3zmL9C4SOVRayrploitbxRbt8giHPpvvbuF8XyGkidRIwmmdfGtPV7XP0iMwG\npofJYO2Vv+F6uPlS1aDbkMA2xAJaBZ5ViDmC2pOrOpWiMO6+m3siNi+2EvbPzn+f\nXygxmnwGDqZ2fu0Qr3d8+PgJAoGBAOM7A/uNOaWylvHEugEG530S/sh5eZzrIak+\nDLoJFySufjElG5aT9e9OK5e5CZhEzKXX5lDMJ8r2oF9+S04b7C3JblrdEy6eLZdS\ntgpzhJK67tybLGR0AblooLFLGfEwZHcH3+VBeib/D2+QRsFMLriTw8n8lpMN3SQR\nREzADzkZAoGAU0Vev9R1I2UTgpKYZgKiefmINx8YrQPBTmECnBboQhDUQefatHbs\n4fHpUfxNDj7gtrKUkPAiGtH9OhP/kaLOz4+Q1CKnX+3fr6HB6O80KeJrLUI6PVUj\nkHH7ig2tI7sYFELuMoRiIz03LMv4WaOUfrJqf+r9sdz8uLTcihqkcFs=\n-----END RSA PRIVATE KEY-----",
"LOG_FORMAT": "json"
}
},
Expand All @@ -198,14 +199,14 @@
"RouterLogGroup"
]
},
"RouterLambdaVersionnsYlp6eYucMpe4lKTC1cCoiJSMgwdGrCeEU8dvrXKU": {
"RouterLambdaVersiony6F4Efe86vJfA0ywo8AwuzEVNKOxZsOl02xS8MnAyE": {
"Type": "AWS::Lambda::Version",
"DeletionPolicy": "Retain",
"Properties": {
"FunctionName": {
"Ref": "RouterLambdaFunction"
},
"CodeSha256": "43n4ZQ8Ne/jCUyGZybNYFfHflnuPVxH5LEDsMzGF9Xw="
"CodeSha256": "7/EPPr3ZgBvS/mV8Im1aDaqcvAN/sr/tr5KWt1X1qxg="
}
},
"ApiGatewayRestApi": {
Expand All @@ -220,7 +221,7 @@
"Policy": ""
}
},
"ApiGatewayResourceProbot": {
"ApiGatewayResourceApi": {
"Type": "AWS::ApiGateway::Resource",
"Properties": {
"ParentId": {
Expand All @@ -229,19 +230,43 @@
"RootResourceId"
]
},
"PathPart": "probot",
"PathPart": "api",
"RestApiId": {
"Ref": "ApiGatewayRestApi"
}
}
},
"ApiGatewayMethodProbotPost": {
"ApiGatewayResourceApiGithub": {
"Type": "AWS::ApiGateway::Resource",
"Properties": {
"ParentId": {
"Ref": "ApiGatewayResourceApi"
},
"PathPart": "github",
"RestApiId": {
"Ref": "ApiGatewayRestApi"
}
}
},
"ApiGatewayResourceApiGithubWebhooks": {
"Type": "AWS::ApiGateway::Resource",
"Properties": {
"ParentId": {
"Ref": "ApiGatewayResourceApiGithub"
},
"PathPart": "webhooks",
"RestApiId": {
"Ref": "ApiGatewayRestApi"
}
}
},
"ApiGatewayMethodApiGithubWebhooksPost": {
"Type": "AWS::ApiGateway::Method",
"Properties": {
"HttpMethod": "POST",
"RequestParameters": {},
"ResourceId": {
"Ref": "ApiGatewayResourceProbot"
"Ref": "ApiGatewayResourceApiGithubWebhooks"
},
"RestApiId": {
"Ref": "ApiGatewayRestApi"
Expand Down Expand Up @@ -281,7 +306,7 @@
"RouterLambdaPermissionApiGateway"
]
},
"ApiGatewayDeployment1638131011036": {
"ApiGatewayDeployment1638582359084": {
"Type": "AWS::ApiGateway::Deployment",
"Properties": {
"RestApiId": {
Expand All @@ -290,7 +315,7 @@
"StageName": "dev"
},
"DependsOn": [
"ApiGatewayMethodProbotPost"
"ApiGatewayMethodApiGithubWebhooksPost"
]
},
"RouterLambdaPermissionApiGateway": {
Expand Down Expand Up @@ -343,7 +368,7 @@
"RouterLambdaFunctionQualifiedArn": {
"Description": "Current Lambda function version",
"Value": {
"Ref": "RouterLambdaVersionnsYlp6eYucMpe4lKTC1cCoiJSMgwdGrCeEU8dvrXKU"
"Ref": "RouterLambdaVersiony6F4Efe86vJfA0ywo8AwuzEVNKOxZsOl02xS8MnAyE"
},
"Export": {
"Name": "sls-lambda-probot-express-dev-RouterLambdaFunctionQualifiedArn"
Expand Down Expand Up @@ -464,16 +489,17 @@
"pluginsData": {},
"functions": {
"router": {
"handler": "handler.probot",
"handler": "handler.webhooks",
"environment": {
"WEBHOOK_SECRET": "my-secret",
"APP_ID": "154856",
"PRIVATE_KEY": "-----BEGIN RSA PRIVATE KEY-----\nMIIEpQIBAAKCAQEA9wuOx8tOT4JK7qQ3Ai3RMx7k7Aw7ho2KJeVRyLNG8g3TiBtN\npB+WIrQQ3NXqC1f55hnMokVSRvJOCtm/oyg60J0OSZ8e6BIXPDMfBBcKEEmTVmQi\nN5BK5tcgR0kZvahQKS9HCkzlTxEOemoFQhzKli0gNiaH93pmt6Aq6+Bf2yboczfW\n1qSYiJSeEjDTKUUgPOJMy9EzajYe6IuKOOva7DWruorw8YOfDGQ9Pcs470ft4NJ6\nbr7Q2sNbtBUWOc4wCWzMH7lv7bhjNlapNlYNKFWZCi2M2I0IcQwLiPpiI3KS/YK5\nDwo4g4h2NpkOORI2ytnaqyKZIR3kConY3tOTCwIDAQABAoIBAQDm/4eiihfPgKVQ\nP3ywLOdQRbMIhOekCPUEOkkewYO1EfiZa+5NaLuZ94VM+Ti/IqQo5DbUBL3KWQdg\nXfszNIrKRhD2BjOADGptf9+gk2p1kFaUkUztZ56h+sXT4iaPkLJj0DE9EGnaZLiE\n/l2sU/+aLNfRynWYkns5eCqqJEN9Ri34E9FF9sd8HlQHjkC0WACd6DwSmzLCBQW0\nylqRXJ3drD4VKb+fLXF2nPG8OKy92IFJyjZBHorWdXlofigT1KACYNT/bTA4LIt3\nTImZieCtxIz1Ajjk524BOFcfFM2w+/tAVxVKTcV2xDoEpGcrnRzEi5D505tzIA5I\n+XTrbgYBAoGBAP+APwYOWr9d2QAmP1G1+DEke1QUPZWdvWFxnkP1P8CJU/zZeuAK\nnC8EOW4uGdPoVCogxi2HVdmrgTVhh0OnKE8+ubJs/hQgzDkcrE3laJ4BVr7iQjjR\ntseToFavFlRbx+gTg5f8M3Zisl7DjkF4bUJFndH++qZ5iJDiTy591W5zAoGBAPeH\nFWJjMQ+hSLeQXK8GYW7v3BoGfDMh7a3ZhEU2eYIDZApPt+ITf8PVTt4yI6ej31Ck\nD4IyDROSLm6nE29OWbr/Xdj+yZje2W8QV1Y1+eQGWvsRh/Hf7yw96Yhe/N1/K8C4\nMMSxo8KCppCHGdtBw0QN0ngj6l2SWMLgiyaMbUsJAoGBAPenM2+HUmbTbJc8e3uU\nSnI3zmL9C4SOVRayrploitbxRbt8giHPpvvbuF8XyGkidRIwmmdfGtPV7XP0iMwG\npofJYO2Vv+F6uPlS1aDbkMA2xAJaBZ5ViDmC2pOrOpWiMO6+m3siNi+2EvbPzn+f\nXygxmnwGDqZ2fu0Qr3d8+PgJAoGBAOM7A/uNOaWylvHEugEG530S/sh5eZzrIak+\nDLoJFySufjElG5aT9e9OK5e5CZhEzKXX5lDMJ8r2oF9+S04b7C3JblrdEy6eLZdS\ntgpzhJK67tybLGR0AblooLFLGfEwZHcH3+VBeib/D2+QRsFMLriTw8n8lpMN3SQR\nREzADzkZAoGAU0Vev9R1I2UTgpKYZgKiefmINx8YrQPBTmECnBboQhDUQefatHbs\n4fHpUfxNDj7gtrKUkPAiGtH9OhP/kaLOz4+Q1CKnX+3fr6HB6O80KeJrLUI6PVUj\nkHH7ig2tI7sYFELuMoRiIz03LMv4WaOUfrJqf+r9sdz8uLTcihqkcFs=\n-----END RSA PRIVATE KEY-----",
"LOG_FORMAT": "json"
},
"events": [
{
"http": {
"path": "probot",
"path": "api/github/webhooks",
"method": "post",
"integration": "AWS_PROXY"
}
Expand All @@ -483,9 +509,9 @@
"package": {},
"memory": 1024,
"timeout": 6,
"runtime": "nodejs14.x",
"runtime": "nodejs12.x",
"vpc": {},
"versionLogicalId": "RouterLambdaVersionnsYlp6eYucMpe4lKTC1cCoiJSMgwdGrCeEU8dvrXKU"
"versionLogicalId": "RouterLambdaVersiony6F4Efe86vJfA0ywo8AwuzEVNKOxZsOl02xS8MnAyE"
}
},
"configValidationMode": "warn",
Expand All @@ -506,7 +532,7 @@
"artifact": "/workspaces/invite-automation/.serverless/lambda-probot-express.zip"
},
"package": {
"artifactDirectoryName": "serverless/lambda-probot-express/dev/1638131020628-2021-11-28T20:23:40.628Z",
"artifactDirectoryName": "serverless/lambda-probot-express/dev/1638582368546-2021-12-04T01:46:08.546Z",
"artifact": "lambda-probot-express.zip"
}
}
Loading