sparse-intern-71089
02/22/2021, 9:57 PMwitty-candle-66007
02/22/2021, 10:01 PMpulumi refresh -y
that will synchronize Pulumi state with AWS and then allow you to do the pulumi destroy
alert-raincoat-81485
02/22/2021, 10:07 PMavailable
means the EBS volumes are already detached from the instance and it’s available
to use/attach to other instances.
It make sense while pulumi prompts an error message of “failed to detach volume” while EBS is in-use
state.alert-raincoat-81485
02/22/2021, 10:09 PMFailed to detach Volume (vol-*********) from Instance (i-*******): IncorrectState: Volume 'vol-*******' is in the 'available' state.
status code: 400, request id: 80154710-********
it shows the volume pulumi is trying to detach is already detached an already in available
statewitty-candle-66007
02/22/2021, 10:20 PMstatus code: 400...
bit.
Did you try the pulumi refresh
? That will update Pulumi’s state to synchronize it with AWS - essentially detaching the volume in the state model. That should then allow subsequent pulumi up
or pulumi destroy
to proceed as expected.billowy-army-68599