question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

No base path mapping is being set

See original GitHub issue

Hello,

First, thanks for your great work on this! It makes a custom domain much easier.

I’m having a problem I can’t figure out. No matter what I put into basePath and stage, no path mapping are showing in the API Gateway custom domain configuration in AWS (and so all requests to the custom domain get 403s).

My configuration is:

custom:
  customDomain:
    domainName: sub.domain.com
    certificateName: domain.com
    basePath: ''
    stage: production
    createRoute53Record: true

The custom domain and route53 dns record properly get made. The only thing is the “base path mappings” are totally blank. I tried putting anything into basePath, such as 'test', but still nothing. If I manually create it in AWS then everything works properly but obviously I don’t want to have to do that.

I’m sorry if I’m missing something obvious and this isn’t urgent. But let me know how I can help debug. And thanks again for sharing this with the community!

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:21
  • Comments:31 (8 by maintainers)

github_iconTop GitHub Comments

3reactions
uschellercommented, Apr 12, 2018

I tried several times, but could not find it anywhere in my update-stack.json

  • set basePath to “asdf”
  • sls deploy (will return: An error occurred: pathmapping - Only one base path mapping is allowed if the base path is empty)
  • When searching for “asdf” in update-stack.json it is not found
3reactions
majones-amplifycommented, Dec 14, 2017

Also, in our experience it’s best never to go behind CloudFormation’s back… as more often than not it won’t realize that changes have been made. If you do need to change the base path, I’d recommend removing it with sls remove

Read more comments on GitHub >

github_iconTop Results From Across the Web

create-base-path-mapping - AWS Documentation
The base path name that callers of the API must provide as part of the URL after the domain name. This value must...
Read more >
AWS API domain empty base mapping is not working
The path mapping is only used if you want to map a path to a different path. For example, if you want to...
Read more >
create-base-path-mapping — AWS CLI 2.9.5 Command ...
The base path name that callers of the API must provide as part of the URL after the domain name. This value must...
Read more >
Amazon API Gateway - Multi level base path mapping
In this session, Don Bushell, Sr Product Manager, Amazon Serverless API Gateway joins Julian Wood to demo the new multi level base path...
Read more >
Delete base path mapping in API Gateway doesn't work
I have manually updated our custom domain name to associate with a base path mapping to our lamdba function in API Gateway, but...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found