Skip to content

Commit

Permalink
Use ARM predicate for bottlerocket SSM parameter
Browse files Browse the repository at this point in the history
Signed-off-by: Jacob Vallejo <[email protected]>
  • Loading branch information
jahkeup committed Aug 31, 2020
1 parent 8cba8e2 commit d9a2b41
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions pkg/ami/ssm_resolver.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ package ami

import (
"fmt"
"strings"

"github.com/aws/aws-sdk-go/aws"
"github.com/aws/aws-sdk-go/service/eks"
Expand Down Expand Up @@ -88,8 +87,7 @@ func MakeManagedSSMParameterName(version, imageFamily, amiType string) (string,
// instanceEC2ArchName returns the name of the architecture as used by EC2
// resources.
func instanceEC2ArchName(instanceType string) string {
// eg: a1.large - an ARM instance type.
if strings.HasPrefix(instanceType, "a") {
if utils.IsARMInstanceType(instanceType) {
return "arm64"
}
return "x86_64"
Expand Down

0 comments on commit d9a2b41

Please sign in to comment.