(aws_eks): (COMPUTE7_GRAVITON3 picks wrong AMI) #20758
Labels
@aws-cdk/aws-eks
Related to Amazon Elastic Kubernetes Service
bug
This issue is a bug.
effort/small
Small work item – less than a day of effort
in-progress
This issue is being actively worked on.
p1
Describe the bug
Below code picks X86_64 AMI for ARM AutoScaling group.
Expected Behavior
Expect 1 EC2 instance of type "c7g.8xlarge" to be created.
Current Behavior
0 instances created. AutoScailing group Activity tab reports below error:
Launching a new EC2 instance. Status Reason: The architecture 'arm64' of the specified instance type does not match the architecture 'x86_64' of the specified AMI. Specify an instance type and an AMI that have matching architectures, and try again. You can use 'describe-instance-types' or 'describe-images' to discover the architecture of the instance type or AMI. Launching EC2 instance failed.
Reproduction Steps
try to add asg capacity to eks cluster:
Possible Solution
Switching InstanceClass to COMPUTE6_GRAVITON2 "resolves" the issue:
Additional Information/Context
No response
CDK CLI Version
2.28.0 (build ba233f0)
Framework Version
No response
Node.js Version
v16.15.0
OS
MacOS 12.4
Language
Python
Language Version
Python 3.9.12
Other information
No response
The text was updated successfully, but these errors were encountered: