-
Notifications
You must be signed in to change notification settings - Fork 4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ec2: change default Volume.volumeType and/or change generic EbsDeviceVolumeType #29931
Comments
Love this idea but I guess we can't switch the EbsDeviceVolumeType enum using feature flag if we plan to make i.e. volumeType: props.volumeType ?? EbsDeviceVolumeType.GENERAL_PURPOSE_SSD_GP3, Looking at the EBS console, the default volume type for a new ebs is now gp3 so I think it makes sense here. |
### Issue # (if applicable) As the EBS console is now having `gp3` as the default volumeType, this PR set the default volumeType to gp3 if undefined under feature flag. Closes #29931 ### Reason for this change ### Description of changes ### Description of how you validated changes I have deployed the sample below and verified the volume type is `gp3` from console. ```ts import { Stack, App, Size, aws_ec2 as ec2 } from 'aws-cdk-lib'; import * as cxapi from 'aws-cdk-lib/cx-api'; const app = new App(); const stack = new Stack(app, 'demo-stack'); stack.node.setContext(cxapi.EBS_DEFAULT_GP3, true); // should create a gp3 volume new ec2.Volume(stack, 'Volume', { availabilityZone: 'us-east-1a', size: Size.gibibytes(500), }); ``` ### Checklist - [x] My code adheres to the [CONTRIBUTING GUIDE](https://github.com/aws/aws-cdk/blob/main/CONTRIBUTING.md) and [DESIGN GUIDELINES](https://github.com/aws/aws-cdk/blob/main/docs/DESIGN_GUIDELINES.md) ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
|
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. |
Describe the feature
Change
Volume.volumeType
default to beEbsDeviceVolumeType.GENERAL_PURPOSE_SSD_GP3
, and renameEbsDeviceVolumeType.GENERAL_PURPOSE_SSD
toEbsDeviceVolumeType.GENERAL_PURPOSE_SSD_GP2
Use Case
People incur extra cost because they might not know that they should change the volume type from the default GP2 which is discouraged to use.
Proposed Solution
No response
Other Information
Currently
Volume.volumeType
defaults toEbsDeviceVolumeType.GENERAL_PURPOSE_SSD
which refers to GP2; I think it might be time to switch the default to GP3; The naming ofEbsDeviceVolumeType.GENERAL_PURPOSE_SSD
for GP2 is unfortunate and should probably be deprecated for aEbsDeviceVolumeType.GENERAL_PURPOSE_SSD_GP2
instead.Acknowledgements
CDK version used
v2.138
Environment details (OS name and version, etc.)
Ubuntu 22.04.4
The text was updated successfully, but these errors were encountered: