Serverless-1.0.0-rc.1 enables to deploy an API to be accessible via a AWS API Gateway.
The question: I need the deployed API exposed via a custom domain with SSL certificate instead of the randomly assigned one (URL https://qwertylgbtqert.execute-api....
)?
Can that be done from within serverless.yml
or serverless framework?
Here is my simple service serverless.yml
definition:
service: my-service
provider:
name: aws
runtime: nodejs4.3
functions:
generate:
handler: handler.generate
events:
- http:
method: get
path: url
cors: true
There is an question which relates to this: the answer here, but does not provide an applicable answers. Especially how to assign the custom domain from within the serverless.yml
itself.
It thought if it is possible to create a AWS::Route53 resource and leverage that, however I don't know how to do that in serverless.