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.

(autoscaling): EbsDeviceVolumeType.IO2 is not a valid CloudFormation value

See original GitHub issue

AWS::AutoScaling::LaunchConfiguration BlockDevice supports the following values for property VolumeType (see documentation):

Valid Values: standard | io1 | gp2 | st1 | sc1 | gp3

In CDK, values IO2 is also defined as a possible value in enum EbsDeviceVolumeType.

However, this value is not valid at the moment and should be removed.

Reproduction Steps

const vpc = ec2.Vpc.fromLookup(this, 'MyVPC', {
  isDefault: true,
})

new autoscaling.AutoScalingGroup(this, 'MyAutoScalingGroup', {
  blockDevices: [
    {
      deviceName: '/dev/sda1',
      volume: {
        ebsDevice: {
          deleteOnTermination: true,
          volumeType: autoscaling.EbsDeviceVolumeType.IO2,
        }
      },
    }
  ],
  vpc,
  instanceType: ec2.InstanceType.of(ec2.InstanceClass.T3, ec2.InstanceSize.SMALL),
  machineImage: new ec2.AmazonLinuxImage(),
});

What did you expect to happen?

Deployment of AutoScalingGroup should be successfully.

What actually happened?

Deployment failed with error:

io2 is invalid. Valid volume types are: standard, io1, gp2, st1, sc1, gp3 (Service: AmazonAutoScaling; Status Code: 400; Error Code: ValidationError; Request ID: e5dd0928-b959-4e36-beed-91b7b2ba1f6a; Proxy: null)

Environment

  • **CDK CLI Version : 1.118.0
  • **Framework Version: 1.118.0
  • **Node.js Version: v14.16.0
  • **OS : macOS
  • **Language (Version): all

Other

Originally mentioned in issue #14685. I will submit a short PR and remove value IO2 as proposed for GP3 in the original issue.


This is 🐛 Bug Report

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:7 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
peterwoodworthcommented, Aug 13, 2021

There’s no mention in any of the original issues about Autoscaling, and Autoscaling has never supported io2. The PR seems to have just included the autoscaling enum as well even though autoscaling doesn’t support io2

I wonder if the Autoscaling volume type lags behind the ec2 volume type. In other words, I wonder if io2 will be supported soon for Autoscaling like gp3 was.

For now, I can confirm your PR is safe to merge. I’ll look into if io2 will be an option for autoscaling and if I can’t find anything about that I will go ahead and merge your change 😃

0reactions
github-actions[bot]commented, Sep 7, 2021

⚠️COMMENT VISIBILITY WARNING⚠️

Comments on closed issues are hard for our team to see. If you need more assistance, please either tag a team member or open a new issue that references this one. If you wish to keep having a conversation with other community members under this issue feel free to do so.

Read more comments on GitHub >

github_iconTop Results From Across the Web

AWS::AutoScaling::AutoScalingGroup - AWS CloudFormation
By default, Amazon EC2 Auto Scaling specifies units , which translates into number of instances. Valid values: units | vcpu | memory-mib. Required:...
Read more >
aws/aws-cdk v2.0.0-rc.24 on GitHub - NewReleases.io
IO2 is not a valid CloudFormation value (#16028) (492d33b), closes #16027; aws-ecs: add ASG capacity via Capacity Provider by not specifying ...
Read more >
@aws-cdk/aws-cloud9-alpha: Versions | Openbase
IO2 is not a valid CloudFormation value (#16028) (492d33b), closes #16027; aws-ecs: add ASG capacity via Capacity Provider by not specifying ...
Read more >
@aws-cdk/app-delivery | Yarn - Package Manager
... assembly root directory (#16094 (c2852c9), closes #15721; autoscaling: EbsDeviceVolumeType.IO2 is not a valid CloudFormation value (#16028 (492d33b), ...
Read more >
文件· v1.122.0 · mirrors / aws / aws-cdk · GitCode
allowed-breaking-changes.txt · fix(autoscaling): EbsDeviceVolumeType.IO2 is not a valid CloudFormation value (#16028), 1 year ago.
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