Hello everyone, I have an issue with custom domain...
# seed
a
Hello everyone, I have an issue with custom domains. I have deployed a Nx monorepo with a basic serverless (Serverless Framework) template, but seed seems not to catch the outputs of CloudFormation for ApiGateway endpoints. Also I added the IAM permissions showed up here: https://seed.run/docs/customizing-your-iam-policy#custom-domains but don't know how to proceed, seed UI keeps saying that there are no endpoints. Do I have to update IAM permissions again? Maybe I'll use something like https://open-sl.github.io/serverless-permission-generator/
f
Hey @Alois Carrera, are you using HTTP API? Currently SEED only support setting custom domains for REST APIs.
Supporting HTTP API is on our roadmap. In the meanwhile, you can using the serverless-domain-manager.
Let me know if that works for you.
a
@Frank I'm using REST API, this is my
serverless.yml
:
Copy code
frameworkVersion: '3.11.0'

service: guatemala-api

plugins:
  - serverless-bundle
  - serverless-offline
  - serverless-seed

package:
  individually: true

custom:
  seed:
    incremental:
      enabled: true
      disabledFor:
        - production
        - staging
  serverless-offline:
    httpPort: 3333
    lambdaPort: 2333
    noPrependStageInUrl: true
  bundle:
    linting: false
    tsConfig: 'tsconfig.app.json'

provider:
  name: aws
  runtime: nodejs14.x
  timeout: 30
  environment:
    AWS_NODEJS_CONNECTION_REUSE_ENABLED: 1
    NODE_OPTIONS: --enable-source-maps

functions:
  test:
    handler: src/handlers/test.handler
    events:
      - http:
          method: GET
          path: test