仮想ホストマネージャおよびAmazon Web Services

仮想ホストマネージャ(VHM)を使用して、Amazon Web Services (AWS)からインスタンスを収集できます。

VHMを使用すると、SUSE Multi-Linux Managerは、クラスタに関する情報を取得して報告できます。 VHMの詳細については、仮想ホストマネージャを参照してください。

1. Amazon EC2 VHMの作成

仮想ホストマネージャ(VHM)はSUSE Multi-Linux Managerサーバ上で動作します。

Ensure you have installed the virtual-host-gatherer-libcloud package on the SUSE Multi-Linux Manager Server.

プロシージャ: Amazon EC2 VHMの作成
  1. SUSE Multi-Linux ManagerのWeb UIで、システム  仮想ホストマネージャに移動します。

  2. Click Create and select Amazon EC2 from the drop-down menu.

  3. In the Add an Amazon EC2 Virtual Host Manager section, use these parameters:

    • In the Label field, type a custom name for your VHM.

    • In the Access Key ID field, type the access key ID provided by Amazon.

    • In the Secret Access Key field, type the secret access key associated with the Amazon instance.

    • In the Region field, type the region to use.

    • In the Zone field, type the zone your VM is located in. This is required for subscription matching to work. For more information about setting regions and zones, see SUSEのサポートとVMゾーン.

  4. 作成をクリックして変更を保存し、VHMを作成します。

  5. On the Virtual Host Managers page, select the new VHM.

  6. On the Properties page, click Refresh Data to inventory the new VHM.

評価されたオブジェクトおよびリソースを表示するには、システム  システム一覧  仮想システムに移動します。

Instances running on the Amazon public cloud report a UUID to the SUSE Multi-Linux Manager Server in the format of an i followed by seventeen hexadecimal digits:

I1234567890abcdef0

2. SUSEのサポートとVMゾーン

Public cloud providers use regions to define the physical geographic location of the datacenter providing virtual machines. For example, US-East, or Asia.

Regions are then further divided into zones. For example, the US-East region might contain zones called us-east-2a and us-east-2b, among others.

SUSE uses the zone of a virtual machine to determine the appropriate subscription to provide. If all of your VMs are provided by the same zone, you are within the terms and conditions of the 1-2 Virtual Machines subscription.

If your VMs are provided by different zones, even if they are within the same region, you might not meet the conditions of the 1-2 Virtual Machines subscription. In this case, check your subscription carefully.

BYOSインスタンス(Bring-your-own-subscription)の場合、インストールされているすべての製品がサブスクリプションマッチャに渡されます。 パブリッククラウドのインスタンスがPAYG (Pay-as-you-go)の場合、そのベース製品はサブスクリプションマッチャのカウントから除外されます。 インスタンスがPAYGであるかBYOSであるかに関する計算は、登録時またはハードウェア更新アクションの実行時に行われます。

詳細については、https://www.suse.com/products/terms_and_conditions.pdfを参照するか、SUSEにお問い合わせください。

3. 仮想ホストマネージャのAWS許可

セキュリティ上の理由から、タスクを実行するために可能な限り最小限の権限を常に付与してください。 AWSに接続するユーザに過度な許可を持つアクセスキーを使用することはお勧めしません。

SUSE Multi-Linux ManagerがAWSから必要な情報を収集するには、VHMにEC2インスタンスとアドレスを記述する許可が必要です。これを許可する1つの方法は、このタスクに固有の新しいIAMユーザ(IDおよびアクセス管理)を作成し、次のようにポリシーを作成して、ユーザにアタッチすることです。

{
    "Version": "2012-10-17",
    "Statement":[
        {
            "Effect": "Allow",
            "Action": [
                "ec2:DescribeAddresses",
                "ec2:DescribeInstances"
            ],
            "Resource": "*"
        }
    ]
}

特定のリージョンへのアクセスを制限することで、許可をさらに制限できます。 詳細については、https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ExamplePolicies_EC2.html#iam-example-read-onlyを参照してください。