aws-cdk-lib/aws-apigatewayv2: ApiMapping module is not removing mapping path for custom domains #32401
Labels
@aws-cdk/aws-apigatewayv2
Related to Amazon API Gateway v2
bug
This issue is a bug.
closed-for-staleness
This issue was automatically closed because it hadn't received any attention in a while.
p2
response-requested
Waiting on additional info and feedback. Will move to "closing-soon" in 7 days.
Describe the bug
Hello Everyone,
I was working on mapping my aws apigateway with custom domain name. I was able to create the api mapping using aws cdk. But I'm not able to remove the api mapping path even after removing ApimappingKey from the deployment code.
Regression Issue
Last Known Working CDK Version
No response
Expected Behavior
Initially I created the custom domain with no path.
Here's the code snippet I used for creating the api maping.
It created the api mapping with no path.
In next deployment I updated the code like this:
I can see the mapping with path:
But I removed the apiMappingKey from the deployment code then deployed it.
I'm assuming it should remove the path from the mapping.
Current Behavior
I can see the logs of the apimapping being updated:
But the mapping path is not removed.
Is it the default behaviour of aws cdk?
Reproduction Steps
I have mentioned everything above.
Possible Solution
The mapping should be removed.
Additional Information/Context
No response
CDK CLI Version
2.170.0
Framework Version
No response
Node.js Version
v22.11.0
OS
Windows 10
Language
TypeScript
Language Version
No response
Other information
No response
The text was updated successfully, but these errors were encountered: