We're evaluating whether to use Serverless for some of our new AWS application infrastructure. We heavily use Cloudformation (deployed by Ansible), so we would need to be able to cleanly reference the outputs of existing Cloudformation stacks -- one immediate example would be for getting the subnet IDs of our existing AWS network infrastructure for use by a lambda function.
After a lot of browsing, I haven't seen an out-of-the-box way to do this. Our existing Cloudformation stacks are named such that if I could just key in the name of the stack and the desired output variable, I could reliably get the desired outputs across various environments. One possible solution I see is to pull the variables using aws cli and pass them as environment variables to serverless, but I would like a cleaner way if possible.