I'm experiencing issues with my Amazon Elastic Compute Cloud (Amazon EC2) Red Hat Enterprise Linux (RHEL) instance licensing.
Resolution
If you experience issues with your Amazon EC2 instance, then check the status of your license.
Verify the usage operation field
First, verify the Usage operation field of the EC2 instance or Amazon Machine Instance (AMI).
For EC2 instances:
- Open the Amazon EC2 console.
- In the left navigation pane, choose Instances.
- Select your instance.
- In the Instance details pane, under the Details tab, locate the Usage operation field.
For AMIs:
- Open the Amazon EC2 console.
- In the left navigation pane, choose AMIs.
- Select your AMI.
- In the Details pane, locate the Usage operation field. You can also find this information in the Platform details section.
Pay-as-you-go (PAYG) RHEL AMIs come from either AWS Marketplace or Amazon RHEL AMIs.
For PAYG instances, use the following command to verify the billing code:
Note: If you receive errors when you run AWS Command Line Interface (AWS CLI) commands, then see Troubleshooting errors for the AWS CLI. Also, make sure that you're using the most recent AWS CLI version.
curl http://169.254.169.254/latest/dynamic/instance-identity/document | grep billingProducts
View the license status
Next, view the status of the license. On the RHEL instance, run the following command:
sudo subscription-manager status
or
sudo subscription-manager list
If the output shows Status: Unknown or Not Subscribed, then the instance might not be properly licensed. Contact AWS Marketplace support to resolve an improperly licensed instance.
Related information
Migrate RHEL BYOL systems to AWS License-Included instances by using AWS MGN
How do I migrate my RHEL BYOL EC2 instance license to an RHUI license?