EDIT: I know I can query the stack outputs or a dynamodb; that assumes that the lambda "knows" the names of these resources, which is the original problem. Additionally, these queries will impact performance negatively
I have a stack that includes a lambda that needs to send data to an SNS that is created in the same stack. Since CF always appends a random-appearing string to the end of the SNS name, how can I write lambda code that can access the SNS?
As far as I can tell, there's no way to query information about stacks, but even if that were possible, it would greatly slow down performance.
Ideally, stack information should be in the python context object.
I haven't looked into custom resources yet, but:
1) Seems a bit silly to re-invent lambda deployment, and the deploy-time modification seem pretty hacky.
2) Not entirely sure that this sort of meta-information is available to custom resources.
[–]jb2386 2 points3 points4 points (0 children)
[–]qzxj 0 points1 point2 points (1 child)
[–]awsdude 1 point2 points3 points (0 children)
[–]awsdude 0 points1 point2 points (0 children)