question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

(ApiGatewayV2): deployment is not auto-updated when RestApi is updated

See original GitHub issue

❓ General Issue

We are using cdk(@aws-cdk/aws-apigateway) to implement API gateway and its deployment and stage creation using CfnDeployment and CfnStage cloudformation resources.

Yesterday we added one more api and through CICD it deploys to my SBX environment. When i verify the API gateway resources section , my newly added resources is there but not in stage sections. We are facing the issue from yesterday only.

we are using “@aws-cdk/aws-apigatewayv2”: “1.45.0”,

The Question

Environment

  • CDK CLI Version:
  • Module Version:
  • Node.js Version:
  • OS:
  • Language (Version):

Other information

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
Ajaydiwacommented, Jun 22, 2020

We have observed same issue for our API Gateway from last week. We had to deploy API manually to reflect in stages. The cdk version we use is 1.45.0. @nija-at @KarthickEmis

1reaction
Ajaydiwacommented, Jun 25, 2020

Thanks @nija-at for the update.

This worked when implementing RestApi construct instead of CfnRestApi, CfnDeployment and CfnStage constructs separately.

Read more comments on GitHub >

github_iconTop Results From Across the Web

AWS::ApiGatewayV2::Stage - AWS CloudFormation
The deployment identifier for the API stage. Can't be updated if autoDeploy is enabled. Required: No. Type: String. Update requires: No interruption.
Read more >
CloudFormation doesn't deploy to API gateway stages on ...
It will update the existing stage with latest updates. aws apigateway create-deployment --rest-api-id tztstixfwj --stage-name stg ...
Read more >
“Deployment” in Amazon API Gateway | by Jaewoo Ahn
For example, with REST API/WebSocket API, Console's Deploy API does not ... any updates to the API automatically trigger a new deployment to...
Read more >
aws_apigatewayv2_api | Resources | hashicorp/aws
To create and deploy REST APIs, use Amazon API Gateway Version 1 resources. ... the following resources should not be managed as separate...
Read more >
AWS Lambda Guide - Serverless.yml Reference
Disable automatic rollback by CloudFormation on failure. ... Endpoint type for API Gateway REST API: edge or regional (default: edge).
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found