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.

(apigatewayv2): support multi level base path mappings

See original GitHub issue

Hi,

When I tried to configure a API mapping with a / it throws me an error complaining a / in the path is not a valid. However, according to the documentation a / is also allowed.

Reproduction Steps

        apigatewayv2.ApiMapping(self, "AccountsGetBasePathMapping",
            api=accounts_get_api,
            domain_name=apigateway.DomainName.from_domain_name_attributes(self, "ApiMyDomainComApiGwCustomDomain",
                domain_name="api.mydomain.com",
                domain_name_alias_hosted_zone_id="xxxx",
                domain_name_alias_target="xxxx.execute-api.eu-west-1.amazonaws.com."
            ),
            api_mapping_key="accounts/get",
            stage=accounts_get_api_stage,        
        )

What did you expect to happen?

To be able to configure a api mapping with a / gHLsv

What actually happened?

Error: An ApiMapping key may contain only letters, numbers and one of $-_.+!*'(),

Environment

  • CDK CLI Version : 1.97.0 (build c52c2dc)
  • Framework Version: 1.96.0
  • Node.js Version: v15.13.0
  • OS : OSX 11.2.3
  • Language (Version): Python 3.8

This is 🐛 Bug Report

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
nija-atcommented, Apr 14, 2021

Time?

Yes.

We also accept pull requests.

1reaction
nija-atcommented, Apr 13, 2021

Hi @tvb, I’ve re-classified this issue as a feature request.

Until we can implement this, you may use our escape hatch mechanism to bypass this validation.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Amazon API Gateway custom domain names now support ...
You can now configure each path segment of an API Gateway custom domain name to route requests to different APIs. Using multi-level base...
Read more >
How does one create multi-level base path mapping for REST ...
I ran into this article which indicates you will need to call the apigatewayv2 call. The interesting thing is that the V2 is...
Read more >
(aws-apigateway): Support for multi-level paths in ... - GitHub
API Gateway V1 doesn't support the slash character (/) in base path mappings. To create a multi-level base path mapping, use API Gateway...
Read more >
AWS Api gateway for REST API does not work with multi-level ...
I am currently trying to use aws api gateway CLI to create a multi-level base path mapping. I am running the following command:...
Read more >
How to Enable multi level path mapping in Aws Api Gateway?
API Gateway V1 doesn't support the slash character (/) in base path mappings. To create a multi-level base path mapping, use API Gateway...
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