From 3a4882e25067159891d685b31b10d979c52677e5 Mon Sep 17 00:00:00 2001 From: Arian van Putten Date: Sun, 4 Feb 2024 20:38:04 +0100 Subject: [PATCH] Disable tpm2 for now (#63) --- upload-ami/src/upload_ami/cli.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/upload-ami/src/upload_ami/cli.py b/upload-ami/src/upload_ami/cli.py index 963124f..4550876 100644 --- a/upload-ami/src/upload_ami/cli.py +++ b/upload-ami/src/upload_ami/cli.py @@ -81,8 +81,13 @@ def register_image_if_not_exists(ec2, image_name, image_info, snapshot_id, publi logging.info( f"Registering image {image_name} with snapshot {snapshot_id}") tpmsupport = {} - if architecture == "x86_64" and image_info["boot_mode"] == "uefi": - tpmsupport['TpmSupport'] = "v2.0" + + # TODO(arianvp): Not all instance types support TPM 2.0 yet. We should + # upload two images, one with and one without TPM 2.0 support. + + # if architecture == "x86_64" and image_info["boot_mode"] == "uefi": + # tpmsupport['TpmSupport'] = "v2.0" + register_image = ec2.register_image( Name=image_name, Architecture=architecture,