I have this code which is supposed to create a SNS...
# general
f
I have this code which is supposed to create a SNS subscription:
Copy code
let alertsTopicSubscription = new aws.sns.TopicSubscription("alerts-lambda-subscription", {
    topic: alertsSnsTopic,
    protocol: "lambda",
    endpoint: "my-lambda-arn" 
});
However, if I go to the AWS console, the Lambda function does not have the SNS topic listed as a trigger. Is there another step I need to perform to get this to work as expected?