-
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] add gp3 support to EbsDeviceVolumeType #12020
Comments
Yup we need to add that type to the enum and modify the conditions to allow it. |
Don't forget about supporting the Throughput and IOPS configuration for GP3 volumes. It probably makes sense also add in IO2 support at the same time too. |
Here is the issue for the same - #12052 |
This should be close as #12074 was merged. |
The change #12074 doesn't include adding GP3 to |
Just use that downleveling feature like: const cfnInstance = instance.node.defaultChild as ec2.CfnInstance;
cfnInstance.blockDeviceMappings = [{
deviceName: '/dev/sda1',
ebs: {
deleteOnTermination: true,
encrypted: false,
volumeSize: 2 * 300,
volumeType: 'gp3',
},
}]; |
My workaround for a Launch Template in Python: |
There are three topics mentioned in this issue:
|
@jumic it would be helpful if you create a new feature request for the If this is a wanted change, a check should be put in place to ensure that the throughput property is set only if the volume type is gp3. |
|
@peterwoodworth - This is still an issue in CDK 2.69.0 for AutoScalingGroup block devices. It seems the generic interface has been fixed, but not the interface included with ASG Block Devices (oddly, it uses its own). |
The newly released gp3 volumes are supported by Cloudformation. But
aws_cdk.aws_ec2.EbsDeviceVolumeType
does not support it yet.Ref: https://docs.aws.amazon.com/cdk/api/latest/python/aws_cdk.aws_ec2/EbsDeviceVolumeType.html#aws_cdk.aws_ec2.EbsDeviceVolumeType
Work-around:
Cdk gives you a warning
[Warning at /stack/Ec2Server] iops will be ignored without volumeType: EbsDeviceVolumeType.IO1
But gp3 allows your to have provisioned IOPSThe text was updated successfully, but these errors were encountered: