aws ec2 modify-instance-cpu-options
By default, all vCPUs for the instance type are active when you launch an instance. AWS CLI reference
5 options Its page in the AWS CLI reference
Options
--core-countThe number of CPU cores to activate for the specified instance.--dry-runChecks whether you have the required permissions for the operation, without actually making the request, and provides an error response.--instance-idThe ID of the instance to update.--nested-virtualizationIndicates whether to enable or disable nested virtualization for the instance.--threads-per-coreThe number of threads to run for each CPU core.