From 51f90a9eba70cc17f42b3e8e515ebb19c847eef9 Mon Sep 17 00:00:00 2001 From: Corneliu Croitoru Date: Tue, 24 Dec 2024 10:46:52 +0100 Subject: [PATCH] minor change to email simulator --- .../lambda/customerMessage/sqsLogger.ts | 3 +-- .../lib/ai-ecommerce-support-simulator-stack.ts | 8 ++------ 2 files changed, 3 insertions(+), 8 deletions(-) diff --git a/examples/ecommerce-support-simulator/lambda/customerMessage/sqsLogger.ts b/examples/ecommerce-support-simulator/lambda/customerMessage/sqsLogger.ts index 180dc856..e730b74c 100644 --- a/examples/ecommerce-support-simulator/lambda/customerMessage/sqsLogger.ts +++ b/examples/ecommerce-support-simulator/lambda/customerMessage/sqsLogger.ts @@ -34,7 +34,7 @@ export class SQSLogger { } } - + private formatMessage(...args: any[]): string { return args.map(arg => @@ -44,7 +44,6 @@ export class SQSLogger { log(...args: any[]): void { const message = this.formatMessage(...args); - console.log("sendToSQS message="+JSON.stringify(message)) this.sendToSQS(message); } diff --git a/examples/ecommerce-support-simulator/lib/ai-ecommerce-support-simulator-stack.ts b/examples/ecommerce-support-simulator/lib/ai-ecommerce-support-simulator-stack.ts index 03edbd4a..74ee8431 100644 --- a/examples/ecommerce-support-simulator/lib/ai-ecommerce-support-simulator-stack.ts +++ b/examples/ecommerce-support-simulator/lib/ai-ecommerce-support-simulator-stack.ts @@ -456,13 +456,9 @@ export class AiEcommerceSupportSimulatorStack extends cdk.Stack { }); - // Output the AppSync API URL and API Key - new cdk.CfnOutput(this, "GraphQLApiUrl", { - value: api.graphqlUrl, + new cdk.CfnOutput(this, "CloudfrontDomainName", { + value: distribution.domainName }); - new cdk.CfnOutput(this, "GraphQLApiKey", { - value: api.apiKey || "", - }); } }