aws-cdk icon indicating copy to clipboard operation
aws-cdk copied to clipboard

EbsDeviceProps missing support for setting throughput on GP3 volumes, yet VolumeProps has support for it

Open adrabkin opened this issue 2 years ago • 2 comments

Describe the feature

When creating and EC2 instance, and configuring a blockDevices property, this uses the BlockDeviceVolume type, which accepts an ebsDevice parameter of type EbsDeviceProps. EbsDeviceProps does not have the option to set a throughput property.

However, if you look at VolumeProps, when creating a volume separately, it does support the throughput property.

Use Case

I've seen examples where people are creating volumes outside of the blockDevices property of an Instance, then have to deal with attaching the volume.

Having the option to create a gp3 volume along with all of its configuration properties (including throughput) directly via the instance as part of the blockDevices property simplifies the deployment of an instance. iops is already an accepted property as part of EbsDeviceProps, why not throughput?

Proposed Solution

No response

Other Information

No response

Acknowledgements

  • [ ] I may be able to implement this feature request
  • [ ] This feature might incur a breaking change

CDK version used

2.66.1

Environment details (OS name and version, etc.)

OSX 12.6.3

adrabkin avatar Feb 26 '23 05:02 adrabkin

Yes we probably should add this property in EbsDeviceOptionsBase or other interfaces. I'm making this a p2 feature request and any PR submission will be more than welcome and appreciated.

pahud avatar Mar 01 '23 17:03 pahud

I tried to fix this in #30317 but could not get a review before automation closed it. Trying again in #30716.

isker avatar Jul 01 '24 02:07 isker

Comments on closed issues and PRs are hard for our team to see. If you need help, please open a new issue that references this one.

github-actions[bot] avatar Aug 29 '24 19:08 github-actions[bot]

Comments on closed issues and PRs are hard for our team to see. If you need help, please open a new issue that references this one.

github-actions[bot] avatar Aug 29 '24 19:08 github-actions[bot]