Apigateway resourceForPath is not behaving as expected #24343
Unanswered
rremanan-bwi
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I have a common apigateway used by two environments.
I had a business case to add a resource into an existing apigateway.
I used the resourcePath to add resource as it said as below
But I am getting the error - "Another resource with the same parent already has this name" when I deploy second environment. The resource get created in apigateway during the first environment deployment.
This is how I used it
const newApiResource = restApi.root .resourceForPath('/path1') .resourceForPath('path2') .resourceForPath('path3');
Beta Was this translation helpful? Give feedback.
All reactions