Skip to content
Discussion options

You must be logged in to vote

Graviton uses the Arm architecture. Please add property cpuType to use an Arm-based version of the machine image:

// Graviton 3 Processor
new ec2.Instance(this, 'Instance5', {
  vpc,
  instanceType: ec2.InstanceType.of(ec2.InstanceClass.C7G, ec2.InstanceSize.LARGE),
  machineImage: new ec2.AmazonLinuxImage({
    generation: ec2.AmazonLinuxGeneration.AMAZON_LINUX_2,
    cpuType: ec2.AmazonLinuxCpuType.ARM_64,
  }),
});

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@Pinny3
Comment options

Answer selected by Pinny3
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants