From 9dc924171ee60acd818958e3517e9eea9e490f85 Mon Sep 17 00:00:00 2001 From: abhisuma02 Date: Wed, 23 Oct 2024 10:31:29 +0530 Subject: [PATCH] Update index.mdx - Incorrect Env Name accessing in Lambda function --- .../build-a-backend/add-aws-services/custom-resources/index.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pages/[platform]/build-a-backend/add-aws-services/custom-resources/index.mdx b/src/pages/[platform]/build-a-backend/add-aws-services/custom-resources/index.mdx index 0928aba64b7..4f61e7851a4 100644 --- a/src/pages/[platform]/build-a-backend/add-aws-services/custom-resources/index.mdx +++ b/src/pages/[platform]/build-a-backend/add-aws-services/custom-resources/index.mdx @@ -170,7 +170,7 @@ const client = new SNSClient({ region: process.env.AWS_REGION }); export const handler: Handler = async (event) => { const { subject, body, recipient } = event; const command = new PublishCommand({ - TopicArn: process.env.TOPIC_ARN, + TopicArn: process.env.SNS_TOPIC_ARN, Message: JSON.stringify({ subject, body,