Skip to content
Discussion options

You must be logged in to vote

UPDATE: merged a fix for this, you should be able to use json for this property next version release #19885

Original body: Since you asked this again, I decided to try deploying a stack and yeah you're right, you can do this with CloudFormation. I'm curious what the serverless docs are trying to indicate when they reference how certain properties aren't compatible with CloudFormation.

Anyway, the typing the CDK forces doesn't allow you to directly input the GatewayResponses property. You can get around this by using escape hatches to override the generated template. Here's an example which works 🙂

        const cfnApi = new CfnApi(this, 'api', {
            stageName: 'test',
            m…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by peterwoodworth
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants