Visible event source?

65 views
Skip to first unread message

Sheldon Hearn

unread,
Sep 1, 2015, 10:03:59 AM9/1/15
to Unreliable Town Clock
Great idea!

I'm having trouble subscribing my Lambda. I can't see the subscription under Event Sources in the Lambda Console, and my logs don't show events being handled.

I used the instructions under "Example: AWS Lambda Function" at https://alestic.com/2015/05/aws-lambda-recurring-schedule/.

But I had to modify them. Initially, I received "A client error (InvalidParameter) occurred when calling the Subscribe operation: Invalid parameter: TopicArn". I think this is because my Lambda is in eu-west-1, but the town clock topic is in us-east-1.

So I issued this command instead:

aws sns subscribe --region us-east-1 --topic-arn "$sns_topic_arn"   --protocol lambda   --notification-endpoint "$lambda_function_arn"

This command completed successfully.

Should I be seeing the town clock topic in the Lambda Console's Event Sources for the function?

Thanks,
Sheldon.

Sheldon Hearn

unread,
Sep 1, 2015, 10:47:53 AM9/1/15
to Unreliable Town Clock
I misread my CloudWatch logs. *blush*

Explicitly providing the --region flag to the aws sns subscribe command did indeed complete the subscription successfully. It just doesn't show up as an Event Source in the Lambda Console.

Thanks again for making this service available.
Reply all
Reply to author
Forward
0 new messages