Giter VIP home page Giter VIP logo

Comments (6)

carlnordenfelt avatar carlnordenfelt commented on June 27, 2024

I'll have to look at that. Can you send me a template example?
On ons 9 mars 2016 at 21:39, Bryan [email protected] wrote:

When renaming a variable path part the new one gets added before the old
one is deleted

e.g.
/resource1/{key}
renamed to
/resource1/{key1}

BadRequestException: Resource with id 'null' has more than one variable
component as a direct child: [{key}, {key1}]


Reply to this email directly or view it on GitHub
#18
.

from aws-api-gateway-for-cloudformation.

carlnordenfelt avatar carlnordenfelt commented on June 27, 2024

I just had a quick look, are you updating a Resource or a Method?

When resources are updated I call updateResource. If there is an issue there you've stumbled across a bug in API Gateway.
When methods are updated, the old method is deleted and a new method is created in its place. If there is a problem here, I guess again we've come across an interesting "feature" in API Gateway.

This is fairly interesting too:

aws apigateway update-resource --rest-api-id abc123 --resource-id abc456 --patch-operations op=replace,path=/pathPart,value={test1}

Error parsing parameter '--patch-operations': Expected: ',', received: '}' for input:
op=replace,path=/pathPart,value={test1}
^

aws apigateway update-resource --rest-api-id abc123 --resource-id abc456 --patch-operations op=replace,path=/pathPart,value="test2"
{
"path": "/test/test2",
"pathPart": "test2",
"id": "abc456",
"parentId": "abc456789"
}

from aws-api-gateway-for-cloudformation.

BryanCrotaz avatar BryanCrotaz commented on June 27, 2024

Interesting!

from aws-api-gateway-for-cloudformation.

BryanCrotaz avatar BryanCrotaz commented on June 27, 2024

I just had a quick look, are you updating a Resource or a Method?

A resource

e.g.
/resource1/{key}
renamed to
/resource1/{key1}

from aws-api-gateway-for-cloudformation.

carlnordenfelt avatar carlnordenfelt commented on June 27, 2024

Can we close this as an AWS bug or do you have more information for me?

from aws-api-gateway-for-cloudformation.

carlnordenfelt avatar carlnordenfelt commented on June 27, 2024

Ok to close?
I have reported this to AWS.

from aws-api-gateway-for-cloudformation.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.