Skip to content

Commit e58fb1f

Browse files
committed
feat: upgrade dependencies to latest, start using single app approach in SlackEventBus
1 parent 59f2f7c commit e58fb1f

File tree

7 files changed

+3137
-2715
lines changed

7 files changed

+3137
-2715
lines changed

.projen/deps.json

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.projenrc.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ const project = new awscdk.AwsCdkTypeScriptApp({
2828
"@aws-sdk/lib-dynamodb",
2929
"@aws-sdk/client-sqs",
3030
"@aws-sdk/client-lambda",
31+
"@aws-cdk/aws-apigatewayv2-alpha",
3132
"@slack/web-api",
3233
"openai",
3334
"gpt3-tokenizer",

package-lock.json

Lines changed: 3098 additions & 2689 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 17 additions & 17 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/infrastructure/cdk/main.ts

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import { resolve } from "path";
2+
import * as apigwv2 from "@aws-cdk/aws-apigatewayv2-alpha";
23
import { SlackEventBus } from "@wisegpt/awscdk-slack-event-bus";
34
import {
45
App,
@@ -36,7 +37,18 @@ export class MyStack extends Stack {
3637
config.aws.secretArn
3738
);
3839

39-
const slackEventBus = new SlackEventBus(this, "SlackEventBus", { secret });
40+
const httpApi = new apigwv2.HttpApi(this, "HttpApi", {
41+
description: "Slack Bot Http Api",
42+
});
43+
44+
const slackEventBus = new SlackEventBus(this, "SlackEventBus", {
45+
secret,
46+
httpApi,
47+
singleApp: {
48+
appId: config.slack.appId,
49+
eventsApiPath: "/slack/events",
50+
},
51+
});
4052

4153
const slackConversationViewTable = new Table(
4254
this,

tsconfig.dev.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

tsconfig.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)