1 Answer
- Newest
- Most votes
- Most comments
2
To create a consistent and static URL for your AWS Lambda function, you need to set up a custom domain name in Amazon API Gateway. This will allow you to create a custom URL for your API endpoints, ensuring that the URL remains constant and is not subject to the random string generated by AWS.
https://docs.aws.amazon.com/apigateway/latest/developerguide/how-to-custom-domains.html
Note:
- Make sure you have ownership of the domain name and have it verified in ACM.
- The custom domain setup might take some time to propagate through DNS.
Must I own a domain name for that? can't I just have like an <api-id> const string without buying a domain name
You must have a registered internet domain name in order to set up custom domain names for your APIs. https://docs.aws.amazon.com/apigateway/latest/developerguide/how-to-custom-domains.html#custom-domain-names-register
Relevant content
- asked 2 years ago
- asked 3 years ago
- asked a year ago
please accept the answer if it was useful