AWS ec2 documentation change
Summary
Updated AMI retrieval example with creation date filter and output formatting
Security assessment
Documentation improvement for TPM-enabled AMI discovery. No security controls or vulnerabilities addressed.
Diff
diff --git a/ec2/latest/windows-ami-reference/ami-windows-tpm.md b/ec2/latest/windows-ami-reference/ami-windows-tpm.md index cef4e1104..e1e1514de 100644 --- a//ec2/latest/windows-ami-reference/ami-windows-tpm.md +++ b//ec2/latest/windows-ami-reference/ami-windows-tpm.md @@ -42 +42 @@ The following example retrieves a list of the latest Windows Server AMIs that ar -The following example retrieves Windows Server AMIs that are configured for NitroTPM and UEFI Secure Boot by filtering on the AMI name pattern, the owner, and the platform. You provide the year and month in the name pattern filter to search for AMIs that were created during that month. +The following example retrieves Windows Server AMIs that are configured for NitroTPM and UEFI Secure Boot by filtering on the AMI name, the owner, the platform, and the creation date (year and month). Output is formatted as a table with columns for the AMI name and image ID. @@ -47,2 +47,6 @@ The following example retrieves Windows Server AMIs that are configured for Nitr - --filters "Name=name,Values=TPM-Windows_Server-*2025.05.*" \ - "Name=platform,Values=windows" + --filters \ + "Name=name,Values=TPM-Windows_Server-*" \ + "Name=platform,Values=windows" \ + "Name=creation-date,Values=2025-05*" \ + --query 'Images[].[Name,ImageId]' \ + --output text | sort