Home > other >  Api Gateway change Stage name
Api Gateway change Stage name

Time:11-04

How could I change Stage name in AWS Api Gateway? I haven't found rename function in console and neither in CLI.

For exmaple creating new stage with CLI

  1. aws apigateway create-deployment --rest-api-id ${RESTAPIID} --stage-name '' or
  2. aws apigateway create-stage --rest-api-id abcde123456 --stage-name ThisIsMyStageName --deployment-id abdcde

My best guess is to use "update-stage" function but don't know how to do this.

CodePudding user response:

The API Gateway's stage name is a ressource ID. This mean you cannot edit it.

However, you can easily create a new stage and delete the old one

  • Related