I am using serverless
to manage my AWS resources and come cross this plugin to support nested stacks: https://www.serverless.com/plugins/serverless-plugin-nested-stacks.
I have tried that but it seems that I can only put Resources
in a nested stacks. I can't put serverless lambda functions in the nested stack because lambda function uses a different syntax than cloudformation.
For example, below is my lambda function defined in serverless.yml
:
logoffHandler:
handler: src/lambdas.lorcedLogoff
name: lorcedLogoff
I can't put this definition in a nested stack, I will have to convert it to cloudformation syntax AWS::Lambda::Function
. Do I understand it correctly? If I have to use cloudformation syntax to define everything, there is no point to use serverless
at all.