Creating a cross-region APIGatewayv2 HtppIntegration where the API Gateway is in one region and the Lambda is in another using the AWS console is straightforward as it is possible to select the “AWS Region” from which to look up existing Lambda Functions.
Additionally, in CDK it is possible to create an “HttpLambdaIntegration” using the following example code taken straight from the AWS CDK documentation.
Given the above, it seems it should be possible to simply create an “HttpLambdaIntegration” using a Lambda Function in another region by loading it via its ARN. However, when trying to use a Lambda in another region, which was loaded using the “fromFunctionArn” method in the Lambda construct library, CDK will throw an error.
Is there perhaps a parameter or other configuration setting that might be required to enable cross-region Lambdas to be used in CDK or perhaps an alternative approach to the above methodology?
Thanks!