add cpu_options to launch template @y3ti (#159)
## whatAdd new variable cpu_options to specify CPU options for an Amazon EC2 instance
why
I need to disable Intel Hyper-Threading for instances created by AutoScaling Group. EC2 and Launch Template provides a CPU Options configuration that allows for:
- disable Intel Hyper-Threading Technology by setting
threads_per_coreto 1 (default is 2 which means that hyper threading is enabled) - define cpu cores per instance (you might do this to potentially optimize the licensing costs of your software with an instance that has sufficient amounts of RAM for memory-intensive workloads but fewer CPU cores)
- enable AMD Secure Encrypted Virtualization-Secure Nested Paging (AMD SEV-SNP) - a CPU feature that provides the following properties like attestation and memory encryption
references
https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/launch_template#cpu-options
https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instance-optimize-cpu.html
https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/sev-snp.html