Facing error Attribute 'RootResourceId' does not exist while deploying serverless template containing Api Gateway

0

I recently updated my serverless template with the region and some variable changes to deploy the serverless stack in different regions and started getting issue Attribute 'RootResourceId' does not exist, but the strange thing is till date I have used the same template for deployment of API gateway and lambda. There are no significant updates made to the serverless template. Initially, the API gateway name was the same that's why the deployment was not working but even after the updates, Im facing the same issue. Error

1 Answer
0

A similar error was reported in this GitHub issue.
This issue seems to be caused by the fact that there are a lot of resources here.
Does this apply in your case?
https://github.com/serverless/serverless/issues/9036#issuecomment-1047240189
https://github.com/aws-cloudformation/cloudformation-coverage-roadmap/issues/1364

By the way, are you sure you are referencing the correct "ParentId" in "AWS::ApiGateway::Resource"?
Check to make sure you are not referring to the wrong resource.

profile picture
EXPERT
answered a year ago
  • yes, as I mentioned earlier Im using same serverless template till date, and It was working fine in the us-east-1 region, now I just changed the region and some parameters related to vpc and subnets then I started facing this, I am deploying many API gateway related resources in one go maybe that is causing this issue?

  • Yes, I think that is a conceivable possibility.

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions