diff --git a/lib/aws-genai-llm-chatbot-stack.ts b/lib/aws-genai-llm-chatbot-stack.ts index bc421200b..e2e0cc527 100644 --- a/lib/aws-genai-llm-chatbot-stack.ts +++ b/lib/aws-genai-llm-chatbot-stack.ts @@ -191,6 +191,7 @@ export class AwsGenAILLMChatbotStack extends cdk.Stack { `/${this.stackName}/ChatBotApi/Realtime/Resolvers/outgoing-message-handler/ServiceRole/DefaultPolicy/Resource`, `/${this.stackName}/IdeficsInterface/IdeficsInterfaceRequestHandler/ServiceRole/DefaultPolicy/Resource`, `/${this.stackName}/IdeficsInterface/IdeficsInterfaceRequestHandler/ServiceRole/Resource`, + `/${this.stackName}/IdeficsInterface/ChatbotFilesPrivateApi/CloudWatchRole/Resource`, `/${this.stackName}/IdeficsInterface/S3IntegrationRole/DefaultPolicy/Resource`, ], [ diff --git a/lib/model-interfaces/idefics/index.ts b/lib/model-interfaces/idefics/index.ts index 2fd7c49fa..8bb894053 100644 --- a/lib/model-interfaces/idefics/index.ts +++ b/lib/model-interfaces/idefics/index.ts @@ -71,6 +71,7 @@ export class IdeficsInterface extends Construct { accessLogDestination: new apigateway.LogGroupLogDestination(logGroup), accessLogFormat: apigateway.AccessLogFormat.jsonWithStandardFields(), }, + cloudWatchRole: true, binaryMediaTypes: ["*/*"], endpointConfiguration: { types: [apigateway.EndpointType.PRIVATE],