View your AMI usage
If you share your Amazon Machine Images (AMIs) with other Amazon Web Services accounts—whether with specific Amazon Web Services accounts, organizations, organizational units (OUs), or publicly—you can see how these AMIs are used by creating AMI usage reports. The reports provide visibility into:
-
Which Amazon Web Services accounts are using your AMIs in EC2 instances or launch templates
-
How many EC2 instances or launch templates are referencing each AMI
AMI usage reports help you manage your AMIs more effectively by helping you:
-
Identify the Amazon Web Services accounts and resource types referencing your AMIs so that you can safely deregister or disable AMIs.
-
Identify unused AMIs for deregistration to reduce storage costs.
-
Identify your most used AMIs.
Contents
How AMI usage reports work
When you create an AMI usage report, you specify:
-
The AMI to report on.
-
The Amazon Web Services accounts to check (specific accounts or all accounts).
-
The resource types to check (EC2 instances, launch templates, or both).
-
For launch templates, the number of versions to check (defaults to the 20 most recent versions).
Amazon EC2 creates a separate report for each AMI. Each report provides:
-
A list of the Amazon Web Services accounts using the AMI.
-
A count of the resources referencing the AMI by resource type per account. Note that for launch templates, if an AMI is referenced in multiple versions of a launch template, the count is only 1.
Important
When you generate an AMI usage report, it might not contain the most recent activity. Instance activity from the past 24 hours and launch template activity from the past few days might not appear in the report.
Amazon EC2 automatically deletes a report 30 days after creation. You can download reports from the EC2 console to retain locally.
Create an AMI usage report
To view how your AMI is being used, you must first create an AMI usage report, specifying the accounts and resource types to report on. Once the report is created, you can view the contents of the report. You can also download the report from the EC2 console.
View AMI usage reports
You can view all the usage reports you've created for an AMI in the past 30 days. Amazon EC2 automatically deletes a report 30 days after creation.
For each report, you can see the Amazon Web Services accounts that are using the AMI, and for each
account, a count of the resources referencing the AMI by resource type. You can also see
when the report creation was initiated. This information is only available when the
report is in the Complete (console) or available
(Amazon CLI)
state.
Important
When you generate an AMI usage report, it might not contain the most recent activity. Instance activity from the past 24 hours and launch template activity from the past few days might not appear in the report.
Delete an AMI usage report
Amazon EC2 automatically deletes a report 30 days after it was created. You can delete it manually before that time.
Report quotas
The following quotas apply to creating AMI usage reports. The quotas apply per Amazon Web Services Region.
Description | Quota |
---|---|
In-progress (pending ) AMI usage reports per Amazon Web Services account |
100 |
In-progress (pending ) AMI usage reports per AMI |
1 |