LoginSignup
0
1

More than 5 years have passed since last update.

【AWS】Redhat系OSのライセンス確認

Posted at

AWSのAPIでライセンス確認

対象のES2インスタンスにログインして、以下のコマンドを実行する

curl http://169.254.169.254/latest/dynamic/instance-identity/document |grep billingProducts

■ 実行結果

[ec2-user@ip-10-0-1-218 ~]$ curl http://169.254.169.254/latest/dynamic/instance-identity/document |grep billingProducts
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
115   463  115   463    0     0   334k      0 --:--:-- --:--:-- --:--:--  452k
  "billingProducts" : [ "bp-xxxxxxx" ],

「null」でなければライセンスが付与されている

ライセンスが付与されていないインスタンスではyumが実行出来ないなどの問題が発生する

0
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
1