-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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
aws-cdk-lib/aws-ec2: "Malformed instance type identifier" when creating ec2 instance of type 'm7i-flex.large' #27587
Comments
The regex doesn't allow for hyphens, ths would need to change
|
I would like to contribute here! |
@matt-mclaughlin-quantum-si would defining it by |
@scanlonp Went ahead and tested with that method, but it produces the same result |
This also affects calling the architecture property of instance type, when constructed with the string 'm7i-flex'. // repo aws-cdk-lib 2.115.0, typescript:
var instanceType = new ec2.InstanceType('m7i-flex.xlarge');
var cpuArch : string = instanceType.architecture;
console.log(`cpuArch: ${cpuArch}`); Compiler Output:
|
|
Describe the bug
I'm trying to add an
m7i-flex.large
instance to a managed node group percreateManagedComputeNodes( name, subnet, [ new ec2.InstanceType('m7i-flex.large'), ], eks.CapacityType.SPOT, );
But receive a
Malformed instance type identifier
when doing so.Expected Behavior
I'm able to add the
m7i-flex.large
instance type as an instance choice for the managed node groupCurrent Behavior
Reproduction Steps
Add a
m7i-flex.large
instance type to a managed node group per "Describe the bug". Then runcdk synthesize
.Possible Solution
No response
Additional Information/Context
No response
CDK CLI Version
2.101.1 (build 16ddad1)
Framework Version
No response
Node.js Version
20.5.0
OS
MAC OS Monterey 12.6.1
Language
TypeScript
Language Version
No response
Other information
No response
The text was updated successfully, but these errors were encountered: