Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Cloudformation stack stuck in UPDATE_IN_PROGRESS

My cloudformation stack that has been normally getting updated in a couple minutes keeps getting stuck. ECS seems to get stuck sometimes waiting for a service to be healthy, but the service came up and was stable.

13:59:20 UTC-0500   UPDATE_COMPLETE AWS::ECS::Service   MyService
13:57:19 UTC-0500   UPDATE_IN_PROGRESS  AWS::ECS::Service   MyService
13:57:14 UTC-0500   UPDATE_COMPLETE AWS::Lambda::Function   MyFunction
13:57:13 UTC-0500   UPDATE_COMPLETE AWS::ECS::TaskDefinition    MyTaskDefinition    
13:57:13 UTC-0500   UPDATE_IN_PROGRESS  AWS::ECS::TaskDefinition    MyTaskDefinition    Resource creation Initiated
13:57:13 UTC-0500   UPDATE_IN_PROGRESS  AWS::ECS::TaskDefinition    MyTaskDefinition    Requested update requires the creation of a new physical resource; hence creating one.
13:57:10 UTC-0500   UPDATE_IN_PROGRESS  AWS::Lambda::Function   MyFunction
13:57:10 UTC-0500   CREATE_IN_PROGRESS  AWS::ApiGateway::DomainName MyDomainName
13:57:05 UTC-0500   UPDATE_IN_PROGRESS  AWS::CloudFormation::Stack  my-stack    User Initiated
like image 305
Adverbly Avatar asked Feb 27 '19 19:02

Adverbly


2 Answers

For people looking at this and not being able to progress. I was able to delete the stack by canceling the update with the cli.

aws --region REGION cloudformation cancel-update-stack --stack-name STACKNAME

then I was able to delete the the stack.

like image 131
Moises Sacal Avatar answered Oct 08 '22 18:10

Moises Sacal


The issue appears to be that a DomainName entity was being created with a cert in cloudfront, which takes up to 40 minutes. Was able to see it initializing in APIGW/Custom Domain Names.

like image 26
Adverbly Avatar answered Oct 08 '22 20:10

Adverbly