ステップ 1 – ターゲット PCS AWS クラスターのアドレスとシークレットを取得する - AWS PCS

翻訳は機械翻訳により提供されています。提供された翻訳内容と英語版の間で齟齬、不一致または矛盾がある場合、英語版が優先します。

ステップ 1 – ターゲット PCS AWS クラスターのアドレスとシークレットを取得する

次のコマンド AWS CLI で を使用して、ターゲット AWS PCS クラスターの詳細を取得します。コマンドを実行する前に、次の置き換えを行います:

  • region-code を、ターゲットクラスター AWS リージョン が実行されている に置き換えます。

  • cluster-ident をターゲットクラスターの名前または識別子に置き換えます。

aws pcs get-cluster --region region-code --cluster-identifier cluster-ident

コマンドは、この例のような出力を返します。

{ "cluster": { "name": "get-started", "id": "pcs_123456abcd", "arn": "arn:aws:pcs:us-east-1:111122223333:cluster/pcs_123456abcd", "status": "ACTIVE", "createdAt": "2024-12-17T21:03:52+00:00", "modifiedAt": "2024-12-17T21:03:52+00:00", "scheduler": { "type": "SLURM", "version": "24.05" }, "size": "SMALL", "slurmConfiguration": { "authKey": { "secretArn": "arn:aws:secretsmanager:us-east-1:111122223333:secret:pcs!slurm-secret-pcs_123456abcd-a12ABC", "secretVersion": "ef232370-d3e7-434c-9a87-ec35c1987f75" } }, "networking": { "subnetIds": [ "subnet-0123456789abcdef0" ], "securityGroupIds": [ "sg-0123456789abcdef0" ] }, "endpoints": [ { "type": "SLURMCTLD", "privateIpAddress": "10.3.149.220", "port": "6817" } ] } }

このサンプルでは、クラスター Slurm コントローラーエンドポイントの IP アドレスは で10.3.149.220、ポート で実行されています6817secretArn は、後のステップでクラスターシークレットを取得するために使用します。IP アドレスとポートは、後のステップでsackdサービスの設定に使用されます。