I am using serverless-framework to deploy a lambda with http endpoints on AWS. This works fine and returns a API Gateway endpoint.
I wanted to know under what scenarios does the endpoint URL change. I need the URL to be constant, know deleting and redeploying the service will change the URL.
In what other cases does the URL change?
The URL of your API Gateway Endpoint will change when you recreate the CloudFormation for your service.
This can happen when:
You remove the stack (sls remove
) and recreate it (sls deploy
).
You rename your service name in your serverless.yml
.