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.
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.