Red Hat Customer Portal サブスクリプションをシステム側へ登録する方法
参考
https://access.redhat.com/ja/articles/3221791
※register時のユーザー名はログイン用のメールアドレスではない
登録
# 使用中のシステムをRed Hat Customer Portal へ登録
subscription-manager register --username=yourusername --password=yourpassword
# 使用中のシステムをRed Hat Customer Portal へ登録
subscription-manager register --username=yourusername --password=yourpassword --auto-attach
利用可能なサブスクリプション一覧
subscription-manager list --available
サブスクリプションのattach
# Pool 指定
subscription-manager attach --pool=<Pool ID>
# 自動
subscription-manager attach --auto
attachして利用中のサブスクリプション一覧
subscription-manager list --consumed
Red Hat の特定のバージョンの AWS AMI を検索する方法。
RedHat社の所有者IDが309956199498。
aws ec2 describe-images --owners 309956199498 --query 'Images[*].[OwnerId, ImageId, Name]' --filters "Name=name,Values=RHEL-7.1*" --output table
-----------------------------------------------------------------------------------
| DescribeImages |
+--------------+---------------+--------------------------------------------------+
| 309956199498| ami-4eee514e | RHEL-7.1_HVM-20150803-x86_64-1-Hourly2-GP2 |
| 309956199498| ami-b1b458b1 | RHEL-7.1_HVM_GA-20150225-x86_64-1-Hourly2-GP2 |
+--------------+---------------+--------------------------------------------------+