Skip to content

Commit 54f3cd5

Browse files
committed
start adding import
1 parent 031032b commit 54f3cd5

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

packages/cdk/resources/Functions.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,8 @@ export interface FunctionsProps {
3535
readonly slackBotSigningSecret: Secret
3636
readonly slackBotStateTable: TableV2
3737
readonly promptName: string
38+
readonly isPullRequest: boolean
39+
readonly mainSlackBotLambdaExecutionRoleArn : string
3840
}
3941

4042
export class Functions extends Construct {

packages/cdk/stacks/EpsAssistMeStack.ts

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@ import {
22
App,
33
Stack,
44
StackProps,
5-
CfnOutput
5+
CfnOutput,
6+
Fn
67
} from "aws-cdk-lib"
78
import {nagSuppressions} from "../nagSuppressions"
89
import {Apis} from "../resources/Apis"
@@ -30,6 +31,9 @@ export class EpsAssistMeStack extends Stack {
3031
public constructor(scope: App, id: string, props: EpsAssistMeStackProps) {
3132
super(scope, id, props)
3233

34+
// imports
35+
const mainSlackBotLambdaExecutionRoleArn = Fn.importValue("epsam:lambda:SlackBot:ExecutionRole:Arn")
36+
3337
// Get variables from context
3438
const region = Stack.of(this).region
3539
const account = Stack.of(this).account
@@ -131,7 +135,9 @@ export class EpsAssistMeStack extends Stack {
131135
slackBotTokenSecret: secrets.slackBotTokenSecret,
132136
slackBotSigningSecret: secrets.slackBotSigningSecret,
133137
slackBotStateTable: tables.slackBotStateTable.table,
134-
promptName: bedrockPromptResources.queryReformulationPrompt.promptName
138+
promptName: bedrockPromptResources.queryReformulationPrompt.promptName,
139+
isPullRequest: isPullRequest,
140+
mainSlackBotLambdaExecutionRoleArn: mainSlackBotLambdaExecutionRoleArn
135141
})
136142

137143
// Create vector index after Functions are created

0 commit comments

Comments
 (0)