We have 2 volumes(vol-63046619 and vol-2c076556) which need to be deleted. However, we can't delete them. They are not attached to any ec2 instances. The below are the command we tried.
$ aws ec2 describe-volumes --region us-east-1 --volume-id vol-63046619
{
"Volumes": [
{
"AvailabilityZone": "us-east-1d",
"Attachments": [],
"Tags": [
{
"Value": "",
"Key": "Name"
}
],
"Encrypted": false,
"VolumeType": "standard",
"VolumeId": "vol-63046619",
"State": "in-use",
"SnapshotId": "snap-xxxxxxx",
"CreateTime": "2012-10-01T20:29:01.000Z",
"MultiAttachEnabled": false,
"Size": 8
}
]
}
$ aws ec2 delete-volume --region us-east-1 --volume-id vol-63046619
An error occurred (IncorrectState) when calling the DeleteVolume operation: The volume 'vol-63046619' is 'in-use'
$ aws ec2 detach-volume --region us-east-1 --volume-id vol-63046619
An error occurred (IncorrectState) when calling the DetachVolume operation: Volume 'vol-63046619' is in the 'available' state.
$ aws ec2 describe-volumes --region us-east-1 --volume-id vol-2c076556
{
"Volumes": [
{
"AvailabilityZone": "us-east-1d",
"Attachments": [],
"Tags": [
{
"Value": "xxxxxxxxxxxxx",
"Key": "aws:cloudformation:stack-name"
},
{
"Value": "",
"Key": "Name"
},
{
"Value": "xxxxxxxx",
"Key": "aws:cloudformation:logical-id"
},
{
"Value": "arn:aws:cloudformation:us-east-1:xxxxxxxxxxxxx:stack/xxxxxxxxxx/xxxxxx-xxxx-xxxx-xxxx-xxxx",
"Key": "aws:cloudformation:stack-id"
}
],
"Encrypted": false,
"VolumeType": "standard",
"VolumeId": "vol-2c076556",
"State": "in-use",
"SnapshotId": "",
"CreateTime": "2012-10-01T20:28:41.000Z",
"MultiAttachEnabled": false,
"Size": 5
}
]
}
$ aws ec2 delete-volume --region us-east-1 --volume-id vol-2c076556
An error occurred (IncorrectState) when calling the DeleteVolume operation: The volume 'vol-2c076556' is 'in-use'
$ aws ec2 detach-volume --region us-east-1 --volume-id vol-2c076556
An error occurred (IncorrectState) when calling the DetachVolume operation: Volume 'vol-2c076556' is in the 'available' state.
$
We tried detach and force detach from the console too. But it just stuck and doesn't help this case.
My plan is basic and I believe there is no way I can create support ticket because of the plan. Please let me know if I am wrong.
I assume you mean "Developer" support level. According to our support webpage you can raise a case although the response time will be a little slower than on the higher plans.