serverless-plugin-additional-stacks icon indicating copy to clipboard operation
serverless-plugin-additional-stacks copied to clipboard

Getting output from additional stacks

Open m-makuch opened this issue 6 years ago • 2 comments

I got additional stack which creates DynamoDB table, and I need to use ARN of that table in my main primary stack to give the lambda some permissions.

How can I get Outputs from additional stack?

Thanks!

m-makuch avatar Mar 23 '20 18:03 m-makuch

Hello. Unfortunately this is quite tricky, because Serverless will expand all variables, including CloudFormation output references, before deploying the stack. So there probably isn't any good solution for referring to the outputs in your serverless.yaml.

kennu avatar Mar 23 '20 22:03 kennu

Thanks for the quick answer. Hardcoding the value was the only option in my case :)

m-makuch avatar Apr 03 '20 13:04 m-makuch