建立 Linux AMI 以取得 NitroTPM 支援 - Amazon Elastic Compute Cloud

建立 Linux AMI 以取得 NitroTPM 支援

必須在註冊 AMI 時設定 Linux AMI 以取得 NitroTPM 支援。之後便無法再設定 NitroTPM 支援。

如需為 NitroTPM 支援預先設定的 Windows AMI 清單,請參閱《Amazon EC2 Windows 執行個體使用者指南》中的啟動 Windows 執行個體的先決條件

設定 Linux AMI 以取得 NitroTPM 支援

使用 register-image 命令,並將 tpm-support 參數設定為 v2.0boot-mode 參數設定為 uefi

aws ec2 register-image \ --region us-east-1 \ --name my-image \ --boot-mode uefi \ --architecture x86_64 \ --root-device-name /dev/xvda \ --block-device-mappings DeviceName=/dev/xvda,Ebs={SnapshotId=snap-0123456789example} DeviceName=/dev/xvdf,Ebs={VolumeSize=10} \ --tpm-support v2.0

預期的輸出結果

{ "ImageId": "ami-0123456789example" }