Is it possible to rename a service and still preserve the CF stack and generated API gateway URLs?
For example is I have a service that is deployed, and serverless.yml is:
Can I change that to
And redeploy without the CF stack being created as a new one?
Not currently no.
When you rename the service, the framework will create a new stack
Out of curiosity, what is the reason you want to keep the urls?
The service is deployed, in use and multiple things depend on the endpoint URLs.
But its not only endpoints its also resources created, like DynamoDB tables. It will be really hard to “move” it to a new location/stack without disruption.
One of my pet peeves is being able to rename projects etc. Due to changing goals with the software naming can become obsolete fast.
I have the similar situation on this issue!