File tree Expand file tree Collapse file tree 2 files changed +10
-2
lines changed
Expand file tree Collapse file tree 2 files changed +10
-2
lines changed Original file line number Diff line number Diff 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
4042export class Functions extends Construct {
Original file line number Diff line number Diff line change 22 App ,
33 Stack ,
44 StackProps ,
5- CfnOutput
5+ CfnOutput ,
6+ Fn
67} from "aws-cdk-lib"
78import { nagSuppressions } from "../nagSuppressions"
89import { 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
You can’t perform that action at this time.
0 commit comments