(apigatewayv2): support multi level base path mappings
See original GitHub issueHi,
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 /
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:
- Created 2 years ago
- Comments:6 (2 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Yes.
We also accept pull requests.
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.