

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

# PCS AWS を使用してクラスターシークレットを検索する
<a name="working-with_clusters_secrets_find_pcs"></a>

を使用して 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": "25.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"
            }
        ]
    }
}
```