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
- https://api.xxx.yyy/function1 would be redirected to https://${ServerlessRestApi1}.execute-api.${AWS::Region}.amazonaws.com/Prod, and
- https://api.xxx.yyy/function2 would be redirected to https://${ServerlessRestApi2}.execute-api.${AWS::Region}.amazonaws.com/Prod
Thanks in advance