question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[ec2] add gp3 support to EbsDeviceVolumeType

See original GitHub issue

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:

perf_server = ebs_gp3_perf_server.node.default_child
# Assuming the gp3 volume is the first device in the list, accessed by index '0'
perf_server.add_property_override("BlockDeviceMappings.0.Ebs.VolumeType", "gp3")

Cdk gives you a warning [Warning at /stack/Ec2Server] iops will be ignored without volumeType: EbsDeviceVolumeType.IO1 But gp3 allows your to have provisioned IOPS

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:9
  • Comments:10 (6 by maintainers)

github_iconTop GitHub Comments

3reactions
tpundercommented, Dec 16, 2020

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.

2reactions
jumiccommented, Aug 15, 2021

There are three topics mentioned in this issue:

  • Volume type GP3 in ec2 --> Resolved by PR #12074.
  • Volume type GP3 for EmrCreateCluster.EbsBlockDeviceVolumeType --> This must not be implemented because GP3 is not supported there, see service documentation and cloudformation documentation.
  • New property Throughput in EbsDeviceOptionsBase. --> New feature request, related to GP3. However, GP3 can also used with the default value for property troughput. @peterwoodworth To keep it clean: should we add a new feature request (low priority) for this property and close this issue?
Read more comments on GitHub >

github_iconTop Results From Across the Web

enum EbsDeviceVolumeType · AWS CDK
Provisioned IOPS SSD - IO2. GP2, General Purpose SSD - GP2. GP3, General Purpose SSD - GP3. ST1, Throughput Optimized HDD.
Read more >
gp3 For AWS EBS Volumes: Why, When and How To Switch.
Changing via the AWS Console. In the AWS console, navigate to the EC2 service and find the volume. Click Actions -> Modify Volume,...
Read more >
EbsDeviceVolumeType (software.amazon.awscdk:monocdk ...
(experimental) Supported EBS volume types for blockDevices. Example: Domain domain = Domain.Builder.create(this, "Domain") ...
Read more >
Amazon EBS volume types - Amazon Elastic Compute Cloud
Volume type, gp3, gp2, io2 Block Express ‡, io2, io1 ... Amazon EBS Multi-attach, Not supported, Supported. Boot volume, Supported ...
Read more >
AWS CDKでスタック内の全てのEC2インスタンスをEBS最適 ...
EBS最適化インスタンスにすることで、EC2インスタンスとEBSボリューム間に ... id: 'SsmParameterValue:--aws--service--ami-amazon-linux-latest-- ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found