endpointExportName not using correct key in the outputs file #27577
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
p2
Describe the bug
endpointExportName
should assign the export name for theCfnOutput
containing the API endpoint.It looks like that it does not put the value under the correct name in the outputs file, but rather add some random characters.
Here is a link to documentation:
https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_apigateway.RestApi.html
I'm using this code in ApiStack:
Expected Behavior
Current Behavior
Reproduction Steps
Run
cdk deploy --all --outputs-file outputs.json
and view theoutputs.json
file.Possible Solution
No response
Additional Information/Context
No response
CDK CLI Version
2.101.1 (build 16ddad1)
Framework Version
No response
Node.js Version
v20.5.1
OS
Windows
Language
TypeScript
Language Version
TypeScript 5.2.2
Other information
I would like to avoid using
CfnOutput
as it seems thatendpointExportName
property is doing the same.Could it be that I am missing some configurations in the
RestApi
initializer?The text was updated successfully, but these errors were encountered: