sst / ion

SST v3
https://sst.dev
MIT License
2.09k stars 244 forks source link

Stuck at removing SSL for domain linked to ApiGatewayV2 #1234

Open YoussefKababe opened 5 days ago

YoussefKababe commented 5 days ago

Hi there!

When removing a deployment, SST fails to remove the SSL ceritifcate and the domain linked to the Api gateway, it just gets stuck indefinitely at this step:

ProjectNameSsl sst:aws:Certificate → ProjectNameSslCertificate aws:acm:Certificate

Done some quick testing and it appears the issue was introduced by this commit: https://github.com/sst/ion/commit/11d96c92d2e68c95543bf578d2855d824ca334ee

gustavgenberg commented 4 days ago

I have had this issue too. If you are running sst remove the certificate deletion will eventually "time out" and error. If I am not mistaken the removal process will continue removing other resources (such as the ApiGateway that is blocking). Simply running sst remove again worked for me.

On the other hand, when doing sst deploy, it will error and exit which does not remove the ApiGateway. I had to remove it manually from the console which resolved the issue.

The problem here seems to be that sst tries to remove the certificate before the dependent ApiGateway.

YoussefKababe commented 4 days ago

I have had this issue too. If you are running sst remove the certificate deletion will eventually "time out" and error. If I am not mistaken the removal process will continue removing other resources (such as the ApiGateway that is blocking). Simply running sst remove again worked for me.

On the other hand, when doing sst deploy, it will error and exit which does not remove the ApiGateway. I had to remove it manually from the console which resolved the issue.

The problem here seems to be that sst tries to remove the certificate before the dependent ApiGateway.

Exactly what I experienced too