also is there a way to get a list of all the funct...
# help
m
also is there a way to get a list of all the functions that have been generated, to grant them some permissions imperatively? e.g.
generatedLambdas.forEach((func) => sqsQueues.notificationQueue.grantSendMessages(func))
r
I've done this by pushing each into an array and then iterating over that array to grant permissions. There may be a better, more sst way, though
s
There's now a method
getAllFunctions
on the stack that will return a list of all the functions in a stack: https://docs.serverless-stack.com/constructs/Stack#getallfunctions
m
sick thanks