I have a scenario where I need to call lambda that’s located in one region from inside of lambda in another.
Currently to deploy to 2 regions, I need to call deploy twice (once for each region) since both of them are separate in the eyes of serverless.
Is there a way for me to have serverless look up arn of the function in one region while deploying in another and then set an environment variable with it?
I could have that lambda contact cloudformation and get the value from outputs, but since ARN doesn’t really change it would be much preferred to have that lookup done during deployment. Is that possible to do with serverless?