justindra
06/15/2022, 5:05 PMFrank
<http://api.example.com|api.example.com>
off the bat in step 1.Frank
<http://new-api.example.com|new-api.example.com>
in SST
2. Test <http://new-api.example.com|new-api.example.com>
is up and running
3. Flip frontend to connect to <http://new-api.example.com|new-api.example.com>
4. Confirm no more traffic is hitting <http://api.example.com|api.example.com>
. U might need to wait for a few days as some users might have not re-freshed their browser and are still hitting <http://api.example.com|api.example.com>
. A good way to check is by looking at the API access log or CloudWatch metrics.
5. Remove the <http://api.example.com|api.example.com>
domain from ur SLS project
6. Duplicate the API in ur SST app and have the new API use domain <http://api.example.com|api.example.com>
7. Flip frontend to connect to <http://api.example.com|api.example.com>
8. Remove the API with <http://new-api.example.com|new-api.example.com>
from ur SST app.Frank
justindra
06/15/2022, 7:49 PM