Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

explanation on serverless.com #10

Open
tanosugi opened this issue Dec 31, 2023 · 1 comment
Open

explanation on serverless.com #10

tanosugi opened this issue Dec 31, 2023 · 1 comment

Comments

@tanosugi
Copy link

I found the following serverless.com web page. but a route53 record was not made.

https://www.serverless.com/plugins/serverless-aws-function-url-custom-domain

# add in your serverless.yml
 
plugins:
  - serverless-aws-function-url-custom-domain
  
 
custom:
  urlDomain:
    apiDomain: ${env:SUBDOMAIN}.yourdomain.com  # change by your custom domain
    hostedZoneName: yourdomain.com.  # your domain Route 53 hosted zone name
    certificateArn: 'arn:aws:acm:us-east-1:xxxxx:certificate/xxxxx' # need to be located at NVirgina 
    
functions:
  api:
    handler: wsgi_handler.handler
    url: true # activate function URL!

I could successfully make a lambda function with url, CloudFront, and route53 record.

plugins:
  - serverless-aws-function-url-custom-domain
custom:
  urlDomain:
    domains:
      - xxx.abc.com
    hostedZoneName: abc.com.
    certificateArn: "arn:aws:acm:us-east-1:XXX:certificate/XXX"
    route53: true

So I would suggest you change the explanation on serverless.com to a later one.

@wangsha
Copy link
Owner

wangsha commented Mar 15, 2024

Thanks for the suggestion. If I recall correctly, when this repo https://github.com/serverless/plugins gets updated, it will automatically fetches latest README with the fixes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants