This is the new *CloudFormation Template Reference Guide*. Please update your bookmarks and links. For help getting started with CloudFormation, see the [AWS CloudFormation User Guide](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/Welcome.html). # AWS::EC2::LaunchTemplate CpuOptions Specifies the CPU options for an instance. For more information, see [Optimize CPU options](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instance-optimize-cpu.html) in the *Amazon Elastic Compute Cloud User Guide*. `CpuOptions` is a property of [AWS::EC2::LaunchTemplate LaunchTemplateData](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-launchtemplatedata.html). ## Syntax To declare this entity in your CloudFormation template, use the following syntax: ### JSON ``` { "[AmdSevSnp](#cfn-ec2-launchtemplate-cpuoptions-amdsevsnp)" : {{String}}, "[CoreCount](#cfn-ec2-launchtemplate-cpuoptions-corecount)" : {{Integer}}, "[NestedVirtualization](#cfn-ec2-launchtemplate-cpuoptions-nestedvirtualization)" : {{String}}, "[ThreadsPerCore](#cfn-ec2-launchtemplate-cpuoptions-threadspercore)" : {{Integer}} } ``` ### YAML ``` [AmdSevSnp](#cfn-ec2-launchtemplate-cpuoptions-amdsevsnp): {{String}} [CoreCount](#cfn-ec2-launchtemplate-cpuoptions-corecount): {{Integer}} [NestedVirtualization](#cfn-ec2-launchtemplate-cpuoptions-nestedvirtualization): {{String}} [ThreadsPerCore](#cfn-ec2-launchtemplate-cpuoptions-threadspercore): {{Integer}} ``` ## Properties `AmdSevSnp` Indicates whether to enable the instance for AMD SEV-SNP. AMD SEV-SNP is supported with M6a, R6a, and C6a instance types only. For more information, see [AMD SEV-SNP for Amazon EC2 instances](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/sev-snp.html). *Required*: No *Type*: String *Allowed values*: `enabled | disabled` *Update requires*: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt) `CoreCount` The number of CPU cores for the instance. *Required*: No *Type*: Integer *Update requires*: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt) `NestedVirtualization` Indicates whether the instance is enabled for nested virtualization. *Required*: No *Type*: String *Allowed values*: `enabled | disabled` *Update requires*: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt) `ThreadsPerCore` The number of threads per CPU core. To disable multithreading for the instance, specify a value of `1`. Otherwise, specify the default value of `2`. *Required*: No *Type*: Integer *Update requires*: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt) ## See also + [Optimize CPU options](https://docs.aws.amazon.com//AWSEC2/latest/UserGuide/instance-optimize-cpu.html) in the *Amazon EC2 User Guide*.