View the CPU options for your instance - Amazon Elastic Compute Cloud
Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions, see Getting Started with Amazon Web Services in China (PDF).

View the CPU options for your instance

You can view the CPU options for an existing instance in the Amazon EC2 console or by describing the instance using the Amazon CLI.

Console
To view the CPU options for an instance using the console
  1. Open the Amazon EC2 console at https://console.amazonaws.cn/ec2/.

  2. In the left navigation pane, choose Instances and select the instance.

  3. On the Details tab, under Host and placement group, find Number of vCPUs.

Amazon CLI
To view the CPU options for an instance (Amazon CLI)

Use the describe-instances command.

aws ec2 describe-instances --instance-ids i-123456789abcde123
... "Instances": [ { "Monitoring": { "State": "disabled" }, "PublicDnsName": "ec2-198-51-100-5.eu-central-1.compute.amazonaws.com", "State": { "Code": 16, "Name": "running" }, "EbsOptimized": false, "LaunchTime": "2018-05-08T13:40:33.000Z", "PublicIpAddress": "198.51.100.5", "PrivateIpAddress": "172.31.2.206", "ProductCodes": [], "VpcId": "vpc-1a2b3c4d", "CpuOptions": { "CoreCount": 34, "ThreadsPerCore": 1 }, "StateTransitionReason": "", ... } ] ...

In the output that's returned, the CoreCount field indicates the number of cores for the instance. The ThreadsPerCore field indicates the number of threads per core.

Alternatively, connect to your instance and use a tool such as lscpu to view the CPU information for your instance.

You can use Amazon Config to record, assess, audit, and evaluate configuration changes for instances, including terminated instances. For more information, see Getting Started with Amazon Config in the Amazon Config Developer Guide.