https://serverless-stack.com/ logo
#help
Title
# help
m

Mischa Spiegelmock

01/06/2022, 5:14 PM
should
getAllFunctions()
return all of my generated functions? even if they’re in nested stacks?
g

Garret Harp

01/06/2022, 5:16 PM
it returns all functions for ur current stack afaik
f

Frank

01/06/2022, 5:18 PM
Yup, in the current stack ☝️
m

Mischa Spiegelmock

01/06/2022, 5:20 PM
dang, I need to get access to all of my functions, but they’re in nested stacks and they don’t pass
child instanceof Fn
because I’m using NodejsFunction. I know that’s not really supported but it is kind of a bummer.
f

Frank

01/06/2022, 5:20 PM
I haven’t tried nested stacks, but it should work.
oh
getAllFunctions
only return
sst.Function
m

Mischa Spiegelmock

01/06/2022, 5:22 PM
I’m still trying to convert my app in stages to SST.. currently stuck on this https://serverless-stack.slack.com/archives/C01JG3B20RY/p1640942861272200
f

Frank

01/06/2022, 5:25 PM
Can you see if you can use Aspects to access all functions? https://docs.aws.amazon.com/cdk/v1/guide/aspects.html
m

Mischa Spiegelmock

01/06/2022, 5:26 PM
oh that’s a swell idea, thanks