Sls failing to deploy api to APIGateway

I know there are a lot of topics explaining this error, but none match what I’m experiencing.
I recently created a go module to deploy some lambdas to APIGateway using serverless v3 and everything worked as expected, even the creation of the new subdomain (I’m using serverless-domain-manager)
A month later I was asked to add versioning to this api, so I prefixed the base path with a ‘v1/’,
but now sls fails to deploy with the error "Unable to update base path mapping for ‘’ ".
I tried deleting the stack completely and setting the api type as EDGE on the customDomain block to no avail.

Any help highly appreciated.
Thanks

REST API or HTTP API?

Are you adding /v1 to the Custom Domain or as a resource?

It is a REST api (AWS APIGateway v1)
I’m tried the ‘/v1’ as a prefix and later as suffix of my existing basePath on customDomain

For REST API you should be able to just change the path in events

functions:
  your-function:
    events:
      - http:
          path: v1/api….
1 Like