I'm exploring Lambda function URLs. Seems like a pretty feature cool feature so far. I'm trying to setting a custom domain for the URL that was generated.
I have a Lambda function with the following URL - https://<some-id>.lambda-url.us-east-2.on.aws/
My setup is as follows:
- I have a domain registered in Route53 which I have access to. Call this - mytestodmain.com
- I created a new hosted zone in Route53 with the following sub domain - lambda-furl.mytestdomain.com and performed the necessary delegation set.
- Created a ACM certificate with the domain - *.lambda-furl.mytestdomain.com
- Validated the cert using DNS validation.
- Created a new record set - CNAME record:
- Name - us-east-2.lambda-furl.mytestdomain.com
- Value - <some-id>.lambda-url.us-east-2.on.aws
With this setup if I hit the subdomain created in step 5 - I get a certificate error.
I tried changing the record type to an A record - and Route53 throws an error saying that the Lambda function URL value isn't a valid IP address. Can anybody help me understand if I'm missing something?