How is the "Unattach Date" pulled regarding EBS Volumes in asset reporting?
search cancel

How is the "Unattach Date" pulled regarding EBS Volumes in asset reporting?

book

Article ID: 283269

calendar_today

Updated On:

Products

CloudHealth

Issue/Introduction

There are a couple of different scenarios that result in the "Unattach Date".  For a volume that is created but never attached to an instance, the “unattached date” is the “updated_at” time we get from the API (the “First Discovered” time).

If that volume is then attached to an instance, the unattached date will clear out.

If an attached volume is then unattached, we get the unattached date from AWS API call “describe-volumes”, which gives us a status.  Details on what this call encompasses can be found here: AWS describe_volumes.  If we see a status of “available”, we set the "Unattach Date" to the time that we collected and processed that API call.

This data will be as accurate as our collection cycle which will be within an hour of when the status change occurs but will most likely appear in the platform earlier.