Add NestedVirtualizationEnabled launch-template parameter#1769
Add NestedVirtualizationEnabled launch-template parameter#1769iangmaia wants to merge 2 commits into
Conversation
59ea6f1 to
26d1038
Compare
|
cc: @petetomasik (not sure who to tag for a review but just wanted to bring this to someone's attention, as it would be nice to allow for nested virtualization in certain EC2 instance types) |
|
Hey @iangmaia Thanks for the contribution! 🎉 Can see that this is indeed a valid option, but not for CloudFormation, unfortunately. We could theoretically avoid this by adding an ignore check for "CpuOptions" : {
"description" : "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 *User Guide*.\n ``CpuOptions`` is a property of [AWS::EC2::LaunchTemplate LaunchTemplateData](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-launchtemplatedata.html).",
"additionalProperties" : false,
"type" : "object",
"properties" : {
"ThreadsPerCore" : {
"description" : "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``.",
"type" : "integer"
},
"AmdSevSnp" : {
"description" : "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).",
"type" : "string",
"enum" : [ "enabled", "disabled" ]
},
"CoreCount" : {
"description" : "The number of CPU cores for the instance.",
"type" : "integer"
}
}
},I'd say we're best to wait on AWS here for this to be supported before proceeding further with a review? |
|
As a side note @iangmaia, I will check on the status of this periodically and will update once this is available. |
Agreed 👍 I'm not sure how that usually goes but hopefully it won't take long?
Thanks a lot! |
Description
Adds a
NestedVirtualizationEnabledstack parameter and setsCpuOptions.NestedVirtualization=enabledon the agent launch template.Note - local validation is blocked:
cfn-lint templates/aws-stack.ymlfails withE3002onCpuOptions.NestedVirtualizationcfn-lint==1.36.0andcfn-lint==1.48.1NestedVirtualization: https://docs.aws.amazon.com/AWSCloudFormation/latest/TemplateReference/aws-properties-ec2-launchtemplate-cpuoptions.htmlChecklist
Release Notes
NestedVirtualizationEnabledstack parameter forc8i,m8i,r8i, and their flex variants