Catalogue
DataUnavailableException Error When Calling the AWS Savings Plans Coverage API

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
2
3
$ 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

An error occurred (DataUnavailableException) when calling the GetSavingsPlansCoverage operation:

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/

Author

Kenzo Tanaka

Posted on

2023-06-01

Licensed under