Hi. My company is currently 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 in a lambda function’s VPC Config (http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-function-vpcconfig.html). We already have stacks in our various environments that can be reliably referenced by name – e.g., ‘${stage}-common-network’. I’m just trying to figure out whether there is an out-of-the-box way to reference these existing stacks’ outputs within serverless.yml. 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.
Would I need to write a custom plugin that accepts the name of the existing stack and the desired output variable as parameters?
Thanks for your help.