Cloudformation hanging during deployment stage
- Dominant language
- Python
- Stars
- 37
- Forks
- 9
- PR merge metrics
- No merged PRs in 30d
Description
I've noticed a bit of an ongoing issue with the cloudformation deployment.
```
until echo "$STATUS" | egrep -q 'CREATE_COMPLETE|UPDATE_COMPLETE|COMPLETE|FAILED|DELETE_IN_PROGRESS';
do
# DEPLOYMENT STAGE 1
aws cloudformation describe-stack-events --stack-name "${CFN_STACK_NAME}" --query 'StackEvents[?contains(ResourceStatus,`CREATE_IN_PROGRESS`)].[LogicalResourceId, ResourceStatus, ResourceType, ResourceStatusReason]';
# DEPLOYMENT STAGE 2
aws cloudformation describe-stack-events --stack-name "${CFN_STACK_NAME}" --query 'StackEvents[?contains(ResourceStatus,`FAILED`)].[LogicalResourceId, ResourceStatus, ResourceType, ResourceStatusReason]';
sleep 10;
# DEPLOYMENT STAGE 3
STATUS=$(aws cloudformation describe-stacks --stack-name "${CFN_STACK_NAME}" --query "Stacks[0].StackStatus" --output text);
done
```
It seems to me that during `STAGE 1`, the query can become hung and none responsive.. I've noticed this occurs if the stack is in any state that isn't `CREATE_IN_PROCESS`
Contributor guide
Assessment
This issue has not been assessed yet.