Serverless command "create_domain" not found

Viewed 1352

I keep getting the create_domain command not found in my serverless project. I have installed serverless-domain-manager in the project AND globally now. Still does not work either way.

serverless.yml:

service: jobsapi
app: civdivcareers
org: kycalica

frameworkVersion: '2'

plugins:
 - serverless-bundle
 - serverless-domain-manager

custom:
  customDomain:
    domainName: dev-api.civdivcareers.com
  certificateName: '*.civdivcareers.com'
  stage: dev
  createRoute53Record: true
  endPointType: regional
  enabled: true

provider:
  name: aws
  runtime: nodejs12.x
  lambdaHashingVersion: 20201221


functions:
  payment:
    handler: handler.payment
    events:
      - http:
          method: post
          path: '/payment'

Error:

 Serverless Error ----------------------------------------
 
  Serverless command "create_domain" not found. Run "serverless help" for a list of all available commands.
 
  Get Support --------------------------------------------
     Docs:          docs.serverless.com
     Bugs:          github.com/serverless/serverless/issues
     Issues:        forum.serverless.com
 
  Your Environment Information ---------------------------
     Operating System:          darwin
     Node Version:              12.18.0
     Framework Version:         2.35.0
     Plugin Version:            4.5.3
     SDK Version:               4.2.2
     Components Version:        3.8.3

Serverless plugin list output:

$ sls plugin list | grep domain
    aws-cognito-idp-userpool-domain - Manage (add and remove) aws hosted domain on Cognito Userpools
    serverless-api-cloudfront - Plugin that adds CloudFront distribution in front of your API Gateway for custom domain, CDN caching and access log.
    serverless-certificate-creator - This serverless plugin creates certificates that you need for your custom domains in API Gateway.
    serverless-domain-manager - Serverless plugin for managing custom domains with API Gateways.
    serverless-plugin-custom-domain - Reliably sets a BasePathMapping to an API Gateway Custom Domain
    serverless-website-domain - A plugin that creates Route 53 records that point to your Cloudfront hosted static website, including www/non-www redirects.
0 Answers
Related