驗證AMI已啟用硝基 TPM - Amazon Elastic Compute Cloud

本文為英文版的機器翻譯版本,如內容有任何歧義或不一致之處,概以英文版為準。

驗證AMI已啟用硝基 TPM

若要TPM為執行個體啟用 Nitro,您必須使用已啟用 Nitro TPM 的功能來啟動執行個AMI體。您可以使用describe-imagesdescribe-image-attributes來驗證AMI是否已啟用 Nitro TPM。如果TPM已啟用硝基AMI,則的值TpmSupport"v2.0"

描述圖像

您可以使用描述影像指令,如下所示。

aws ec2 describe-images --image-ids ami-0123456789example --query Images[*].TpmSupport

如果TPM為啟用硝基AMI,則輸出如下。

[ "v2.0" ]

如果TPM未啟用,則輸出為空。

[ ]
描述圖像屬性

或者,如果您是AMI擁有者,則可以使用指describe-image-attribute令,如下所示,指定tpmSupportattribute

aws ec2 describe-image-attribute \ --region us-east-1 \ --image-id ami-0123456789example \ --attribute tpmSupport

下列為範例輸出。

{ "ImageId": "ami-0123456789example", "TpmSupport": { "Value": "v2.0" } }