Amazon EBS volumes are billed by the gigabyte-month (Gb-month). The GB-month is a measure of how many gigabytes of EBS storage are provisioned to your account and how long the EBS storage is provisioned to your account.
In a 31-day month, you are billed for one GB-month in the following scenarios:
Understand charges for Amazon EBS volumes
- If you have a 31-GB volume that was active for 24 hours.
- If you have a 1-GB volume that was active for 744 hours (the number of hours in 31 days).
$ aws cloudwatch get-metric-statistics \ --namespace AWS/RDS \ --dimensions Name=DBClusterIdentifier,Value=aurora-mysql-57 \ --metric-name VolumeBytesUsed \ --statistics Average \ --start-time 2020-12-16T16:00:00+0900 \ --end-time 2020-12-16T16:30:00+0900 \ --period 60|jq -r '.Datapoints[]|@text "\(.Timestamp)\t\(.Average)\t\(.Unit)"' 2020-12-16T07:05:00Z 62199136256 Bytes 2020-12-16T07:10:00Z 62199136256 Bytes 2020-12-16T07:15:00Z 62199136256 Bytes 2020-12-16T07:20:00Z 62199136256 Bytes 2020-12-16T07:25:00Z 62199136256 Bytes 2020-12-16T07:00:00Z 62199136256 Bytes
Amazon CloudWatch retains metric data as follows:
get-metric-statistics — AWS CLI 1.18.197 Command Reference
- Data points with a period of less than 60 seconds are available for 3 hours. These data points are high-resolution metrics and are available only for custom metrics that have been defined with a StorageResolution of 1.
- Data points with a period of 60 seconds (1-minute) are available for 15 days.
- Data points with a period of 300 seconds (5-minute) are available for 63 days.
- Data points with a period of 3600 seconds (1 hour) are available for 455 days (15 months).