The URLs for http endpoints and the service endpoint reported by the framework in the Service Information after a deploy are incorrect, they are doubling up the amazonaws.com/{stage} part of the url.
So, e.g. instead of:
https://xxxxxxxxx.execute-api.us-east-1.amazonaws.com/dev/myendpoint/
I’m getting:
https://xxxxxxxxx.execute-api.us-east-1.amazonaws.com/devamazonaws.com/dev/myendpoint/
I use this output for environment variables using the serverless-stack-output plugin so this is causing me problems.
I can see that the ServiceEndpoint key in the CloudFormation output for the stack is wrong its value is:
https://xxxxxxxxx.execute-api.us-east-1.amazonaws.com/devamazonaws.com/dev
I don’t know if this is an AWS error or a Serverless Framework error or what I can do about it? Any advice would be much appreciated, thanks.