Create an Amazon API Gateway API that integrates with Amazon SNS and Amazon SQS
/*! Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: MIT-0
*/
'use strict'
import { Handler } from "aws-lambda";
export const handler: Handler = async (event) => {
console.log(event);
};
Visit the GitHub repo for this pattern.
git clone https://github.com/aws-samples/serverless-patterns/ cd serverless-patterns/apigw-sns-sqs-lambda-cdk
cdk deploy
npx cdk destroy
.aws cloudformation list-stacks --query "StackSummaries[?contains(StackName,'STACK_NAME')].StackStatus"
.