Rename deployment

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:

service: foo

Can I change that to

service: bar

And redeploy without the CF stack being created as a new one?

2 Likes

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?

Thanks!

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.

1 Like

I have the similar situation on this issue!