Skip to content

Commit 78ea98c

Browse files
authored
Update index.mdx - Incorrect Env Name accessing in Lambda function (#8049)
1 parent a251166 commit 78ea98c

File tree

1 file changed

+1
-1
lines changed
  • src/pages/[platform]/build-a-backend/add-aws-services/custom-resources

1 file changed

+1
-1
lines changed

src/pages/[platform]/build-a-backend/add-aws-services/custom-resources/index.mdx

+1-1
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ const client = new SNSClient({ region: process.env.AWS_REGION });
170170
export const handler: Handler<Message, void> = async (event) => {
171171
const { subject, body, recipient } = event;
172172
const command = new PublishCommand({
173-
TopicArn: process.env.TOPIC_ARN,
173+
TopicArn: process.env.SNS_TOPIC_ARN,
174174
Message: JSON.stringify({
175175
subject,
176176
body,

0 commit comments

Comments
 (0)