# API Gateway URL (endpoint id) Changed after "sls deploy" and endpoint is not appearing in API Gateway

**URL:** <https://forum.serverless.com/t/api-gateway-url-endpoint-id-changed-after-sls-deploy-and-endpoint-is-not-appearing-in-api-gateway/12941>\
**Category:** Serverless Framework\
**Tags:** aws, lambda, api-gateway\
**Created:** [October 26, 2020, 2:05pm UTC](https://forum.serverless.com/t/api-gateway-url-endpoint-id-changed-after-sls-deploy-and-endpoint-is-not-appearing-in-api-gateway/12941 "2020-10-26T14:05:25Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![FaitAccompli](https://avatars.discourse-cdn.com/v4/letter/f/90ced4/32.png) [@FaitAccompli](https://forum.serverless.com/u/FaitAccompli)\
**Post date:** [October 26, 2020, 2:05pm UTC](https://forum.serverless.com/t/api-gateway-url-endpoint-id-changed-after-sls-deploy-and-endpoint-is-not-appearing-in-api-gateway/12941/1 "2020-10-26T14:05:25Z")

</div>

I recently added changes to my python lambda function and tried to redeploy to production using

> sls deploy --stage prod

The endpoint appears and the deployment was successful. However, I noticed that the endpoint id changed.

**example:**  
from : [https://111222333444.execute-api.us-east-1.amazonaws.com/prod/forecast](https://111222333444.execute-api.us-east-1.amazonaws.com/prod/forecast)  
to: [https://333555777888.execute-api.us-east-1.amazonaws.com/prod/forecast](https://333555777888.execute-api.us-east-1.amazonaws.com/prod/forecast)

This is weird since I’ve already done multiple deployments and it never changed the endpoint id before. Another problem is I can’t use the new one created since it does not appear in API Gateway, CloudFormation and even in S3. However, in my serverless cli it was deployed under the same:  
• service  
• stage  
• region  
• stack  
• resources

The only change I’ve done besides changing that one line of code was I deleted a cron event associated with this endpoint but I strongly feel it shouldn’t have affected this.

Any lead would surely be appreciated. Thank you so much!

---

<div class="post-metadata">

**Author:** ![tikarammardi](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.serverless.com/tikarammardi/32/5146_2.png) [@tikarammardi](https://forum.serverless.com/u/tikarammardi)\
**Post date:** [January 27, 2021, 6:40am UTC](https://forum.serverless.com/t/api-gateway-url-endpoint-id-changed-after-sls-deploy-and-endpoint-is-not-appearing-in-api-gateway/12941/2 "2021-01-27T06:40:15Z")

</div>

[FaitAccompli](http://forum.serverless.com/u/FaitAccompli) I also got the same issue. How did you solved it?
