DataUnavailableException Error When Calling the AWS Savings Plans Coverage API
Overview
I ran into a DataUnavailableException error when calling the AWS Savings Plans Coverage API.
1 | aws ce get-savings-plans-coverage --time-period Start=2023-05-31,End=2023-06-01 --group-by Type=DIMENSION,Key=INSTANCE_TYPE_FAMILY Type=DIMENSION,Key=REGION Type=DIMENSION,Key=SERVICE |
I checked with AWS Support about the conditions under which this occurs.
Support’s Answer
“If you have not used any Savings Plans-eligible services during the target period, the error above occurs.”
Confirming in Cost Explorer
In Cost Explorer, the Savings Plans > Coverage report also showed the following message.
No savings plans coverage data was returned for this time period. Please adjust the time period or filters if this seems incorrect.

Summary
A DataUnavailableException error when retrieving Savings Plans coverage
= You are not using any Savings Plans-eligible services
= You have no need to purchase a Savings Plan
That was the takeaway.
That’s all.
I hope you find this helpful.
DataUnavailableException Error When Calling the AWS Savings Plans Coverage API
https://kenzo0107.github.io/en/2023/06/01/get-savings-plans-coverage-data-unavailable-exception/