Skip to content

rds: DB instance allocated storage units "specified in gigabytes (GB)", while AWS reports in gibibytes (GiB) #20676

@l0b0

Description

@l0b0

Describe the bug

The documentation in aws_rds.DatabaseInstance and aws_rds.DatabaseInstanceFromSnapshot both document the storage size as follows:

:param allocated_storage: The allocated storage size, specified in gigabytes (GB). Default: 100

One gigabyte is 10⁹ or 1,000,000,000 bytes. AWS, however, reports the storage allocation of DB instances and snapshots in GiB (2³⁰ or 1,073,741,824 bytes). I assume the documentation is simply wrong, otherwise there would have to be some funky conversion going on inside CDK.

Expected Behavior

The units in the documentation and functionality should line up with the units used in AWS itself.

Current Behavior

As above.

Reproduction Steps

N/A

Possible Solution

No response

Additional Information/Context

No response

CDK CLI Version

2.27.0 (build 8e89048)

Framework Version

No response

Node.js Version

v14.18.1

OS

NixOS

Language

Python

Language Version

3.9.6

Other information

No response

Metadata

Metadata

Labels

@aws-cdk/aws-rdsRelated to Amazon Relational DatabasebugThis issue is a bug.documentationThis is a problem with documentation.effort/smallSmall work item – less than a day of effortp1

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions