How to manage multiple AWS Serverless APIs with a single domain?

Viewed 74

I created multiple APIs using AWS Serverless Application Model (SAM) and every API created an unique URL with different domain. I would like to manage all APIs under my domain (e.g. https://api.xxx.yyy/function).

Currently I have multiple functions created and I would like to know should I config the subdomain, such that

  1. https://api.xxx.yyy/function1 would be redirected to https://${ServerlessRestApi1}.execute-api.${AWS::Region}.amazonaws.com/Prod, and
  2. https://api.xxx.yyy/function2 would be redirected to https://${ServerlessRestApi2}.execute-api.${AWS::Region}.amazonaws.com/Prod

Thanks in advance

1 Answers
Related