Renaming API gateway instances

Sometimes things happen ( serverless node in my case ) where a generated api gateway name is not the desired one that you want in the end. Renaming them is relatively straightforward ( yet nerve wracking ).

aws apigateway get-rest-apis

This command will return a list of gateway API objects that look something like the following

    "createdDate": 1111111111, 
    "id": "1a1x1aaab", 
    "version": "2018-04-04T01:01:01Z", 
    "name": "jons-gateway-dev"




Get the ID of the gateway you wish to update (1a1x1aaab) in this case. We can now run the next aws command to update the name

aws apigateway update-rest-api --rest-api-id 1a1x1aaaab --patch-operations op=replace,path=/name,value=jons-super-awesome-gateway


Innovative, entrepreneurial and positively unsatisfied mind that constantly pushes the tech boundaries to create new solutions and devices that change people’s lives. Throughout my career, I have had the opportunity of having a multi-disciplinary experience, which led me to wear the hats of: Architect, IoT Consultant (Internet of Things Consultant), Developer, Designer, Engineer, Server Admin, Consultant and Project Manager – to name a few. Based on this diversified background, I get projects done by following smart ideas and well-planned goals. In a world which is getting more unconventional by the day, I use unconventional ways, and a very healthy dose of integrity, to create devices and solutions that help companies go from a steady present to a dynamic future.

You may also like...