PCS AWS を使用してクラスターシークレットを検索する - AWS PCS

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

PCS AWS を使用してクラスターシークレットを検索する

を使用して AWS CLI 、PCS クラスターシークレットの ARN AWS を検索できます。以下のコマンドを入力し、次の置換を行います。

  • regionに置き換え AWS リージョン て、 などの でクラスターを作成しますus-east-1

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

aws pcs get-cluster --region region --cluster-identifier my-cluster

次の出力例は、 get-cluster コマンドからのものです。シークレットを取得するには、 secretArnと をsecretVersion一緒に使用できます。

{ "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" } ] } }