Skip to content

Commit

Permalink
Disable tpm2 for now (#63)
Browse files Browse the repository at this point in the history
  • Loading branch information
arianvp committed Feb 4, 2024
1 parent 4adae56 commit 3a4882e
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions upload-ami/src/upload_ami/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 3a4882e

Please sign in to comment.