cloud/awscloud: exclude really old instance types

RHEL 10 (nightly) builds fail on stage with "Fatal glibc error: CPU does
not support x86-64-v3", this is most likely due to very old instance
types not supporting a specific instruction set.
This commit is contained in:
Sanne Raymaekers 2024-11-26 15:34:49 +01:00
parent e7a7cda3bc
commit 38b799f162

View file

@ -464,6 +464,17 @@ func (a *AWS) createOrReplaceLT(hostInstanceID, imageID, sgID, iamProfile, keyNa
Max: aws.Int32(0),
},
BareMetal: ec2types.BareMetalExcluded,
// el10 needs x86_64-v3
ExcludedInstanceTypes: []string{
"m1.*",
"c1.*",
"t1.*",
"m2.*",
"i2.*",
"m3.*",
"c3.*",
"r3.*",
},
MemoryMiB: &ec2types.MemoryMiBRequest{
Min: aws.Int32(4096),
},