I have two Lambda Functions Lambda1 and Lambda2. Lambda1 does some work and sends multiple results to Lambda2 via an SNS Topic called Topic1. Lambda2 then processes the results of Lambda1.
Lambda1 -> Topic1 -> Lambda2
This all works well until I try to build a CloudFormation Template that represents it. I can subscribe Lambda2 to Topic1, but how can I tell Lambda1 which SNS topic to push messages to? After all the topic ARN is not created until the CloudFormation Stack is created.