cloudformation describe_stacks
blocks stack deletion
#4192
Labels
bug
This issue is a confirmed bug.
cloudformation
p2
This is a standard priority issue
response-requested
Waiting on additional information or feedback.
Describe the bug
I tried to find an answer for this, but it seems it's just a weird behaviour.
I'm running a Lambda to delete CloudFormation stacks using boto3. For this, the Lambda is triggered once a Glue job is finished. If successful, the Lambda should delete the stack containing the Glue job and the stack containing the Lambda afterwards.
When checking AWS Console, I can see that the deletion was triggered (
DELETE_IN_PROGRESS
), but the stack is returned toCREATE_COMPLETE
status within 2 seconds.Expected Behavior
When triggering deletion of a stack, the waiter (that is calling
client.describe_stacks
function) should not interfere with the deletion of the stack.Current Behavior
The deletion is triggered, but the stack returned to it's previous state.
In the
Events
->Status reason
column in the console, you can see this next toCREATE_COMPLETE
:Reproduction Steps
This is the code I'm using:
Alternatively, I tried polling the status in a loop with:
This had the same effect.
Possible Solution
No response
Additional Information/Context
No response
SDK version used
1.34.139
Environment details (OS name and version, etc.)
macOS, Sonoma 14.5, Python 3.12
The text was updated successfully, but these errors were encountered: