Amazon EBS Adaptive Volumes: provisioned size versus billed storage
One empty 1 TiB gp3a volume: the EC2 API reports the provisioned size, CloudWatch reports the used storage that is billed.
AWS Cloud
Region us-east-1
Availability Zone
Presenter
quickstart.py
AWS Price List API
gp3 and gp3a rates
Amazon EC2 API
create, describe, delete
gp3a volume
1 TiB provisioned, 0 GiB used
AWS KMS
default EBS key
Amazon CloudWatch
VolumeConsumedBytes
one datapoint an hour
1
2
3
4
5
6
1
2
3
4
5
6
LINES
API calls from the script
Create and delete the volume
Encryption key
Used-storage metric
FLOW
The script reads live gp3 and gp3a rates from the AWS Price List API.
It creates a 1 TiB gp3a volume and reads it back: size, IOPS, throughput, TRIM.
The volume is never attached, so it holds no data.
The volume is encrypted with the account's default EBS key.
Amazon EBS publishes the volume's used storage to CloudWatch once an hour.
The script reads the metric, prices gp3a against gp3, then deletes the volume.