This message was deleted.
# aws
s
This message was deleted.
c
This is what environment variables are for. I use stack references to refer to other AWS services. If both lambdas are in the same stack you could just refer directly.
e
@crooked-pillow-11944 thanks for the reply! But what if you have several lambdas from all different services. You’ll add each one to env variables? I didn’t thought of env variables as to save a reference to another function, seems strange to me. But if I can’t find another approach, I’ll probably follow your advise (I have it currently working with your advise).
c
Personally I use API Gateway when layering functions like this. Thilat way it's explicit what I'm trying to accomplish.