[aws-apigateway] BasePathMapping does not configure stage for SpecRestApi with domainName #10300
Labels
@aws-cdk/aws-apigateway
Related to Amazon API Gateway
bug
This issue is a bug.
effort/small
Small work item – less than a day of effort
in-progress
This issue is being actively worked on.
p2
When I create a
RestApi
specifying a value fordomainName
the underlyingCfnBasePathMapping
gets configured correctly:However, when I use
SpecRestApi
withdomainName
, the underlyingCfnBasePathMapping
omits thestage
field:Reproduction Steps
What did you expect to happen?
The
AWS::ApiGateway::BasePathMapping
resource generated bySpecRestApi
is equivalent to the one generated byRestApi
.What actually happened?
The
AWS::ApiGateway::BasePathMapping
resource generated bySpecRestApi
omits theStage
field.Environment
v1.62.0
v1.62.0
v12.13.0
v10.14.6
v3.9.6
Other
I believe the root cause of this bug is here:
aws-cdk/packages/@aws-cdk/aws-apigateway/lib/base-path-mapping.ts
Lines 57 to 66 in 8c2d7fc
I believe
props.restApi instanceof RestApi
should be replaced withprops.restApi instanceof RestApiBase
.This is 🐛 Bug Report
The text was updated successfully, but these errors were encountered: