Skip to content

explanation on serverless.com #10

Open
@tanosugi

Description

@tanosugi

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions