Finding AMI billing and usage details
The following properties can help you verify AMI charges on your bill:
-
Platform details
-
Usage operation
-
AMI ID
- Console
-
To find the AMI billing information for an AMI
-
Open the Amazon EC2 console at https://console.aws.amazon.com/ec2/
. -
In the navigation pane, choose AMIs.
-
Select the AMI.
-
On the Details tab, find Platform details and Usage operation.
To find the AMI billing information for an instance
-
Open the Amazon EC2 console at https://console.aws.amazon.com/ec2/
. -
In the navigation pane, choose Instances.
-
Select the instance.
-
On the Details tab, expand Instance details and find Platform details and Usage operation.
-
- AWS CLI
-
To find the AMI billing information for an AMI
Use the describe-images command.
aws ec2 describe-images \ --image-idsami-0abcdef1234567890\ --query "Images[].{PlatformDetails:PlatformDetails,UsageOperation:UsageOperation}"The following is example output for a Linux AMI.
[ { "PlatformDetails": "Linux/UNIX", "UsageOperation": "RunInstances" } ]To find the AMI billing information for an instance
Use the describe-instances command.
aws ec2 describe-instances \ --instance-idsi-1234567890abcdef0\ --query "Reservations[].Instances[].{PlatformDetails:PlatformDetails,UsageOperation:UsageOperation}"The following is example output for a Windows instance.
[ { "PlatformDetails": "Windows", "UsageOperation": "RunInstances:0002" } ] - PowerShell
-
To find the AMI billing information for an AMI
Use the Get-EC2Image cmdlet.
Get-EC2Image ` -ImageIdami-0abcdef1234567890| ` Format-List PlatformDetails, UsageOperationThe following is example output for a Linux AMI.
PlatformDetails : Linux/UNIX UsageOperation : RunInstancesTo find the AMI billing information for an instance
Use the Get-EC2Instance cmdlet.
(Get-EC2Instance ` -InstanceIdi-1234567890abcdef0).Instances | ` Format-List PlatformDetails, UsageOperationThe following is example output for a Windows instance.
PlatformDetails : Windows UsageOperation : RunInstances:0002