-
Notifications
You must be signed in to change notification settings - Fork 302
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
Detect Graviton 2 instance as arm64 Fix #1113 #1116
Conversation
Only did manual test, but I can run integration test if it is required cc @allisaurus
And all the arm instances I found from public doc General Purpose
Compute Optimized
Memory Optimized
Accelerated Computing
Storage Optimized
btw: I am not sure if |
- The original PR aws#695 only handles a1, which is the only arm instance type at that time. Now there are more instance types like c6g etc. - Tweak the unit test a bit so instance types using same ami are merged into one test case.
Checked
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is awesome @pingleig ! I have one minor comment re: expanding a test case but otherwise LGTM
@@ -54,7 +43,7 @@ func TestMetadataClient_GetRecommendedECSLinuxAMI(t *testing.T) { | |||
}, | |||
{ | |||
// validate that we use the generic AMI for other instances | |||
"t2.micro", | |||
[]string{"t2.micro"}, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
since we're accounting for multiple instance types in the other AMI selection tests, can we add a few more "generic" types here? T3, M5a, C4, etc. (doesn't have to be exhaustive, but at least several popular ones that adhere to diff patterns)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added in 2d6be87
@Mergifyio update |
Command
|
Detect Graviton 2 arm instances as arm64 when choosing AMI.
Fix #1113
Enter
[N/A]
in the box, if an item is not applicable to your change.Testing
Documentation
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.