翻訳は機械翻訳により提供されています。提供された翻訳内容と英語版の間で齟齬、不一致または矛盾がある場合、英語版が優先します。
を使用して AWS CLI 、PCS クラスターシークレットの ARN AWS を検索できます。以下のコマンドを入力し、次の置換を行います。
-
を
に置き換え AWS リージョン て、 などの でクラスターを作成しますregion
us-east-1
。 -
をクラスターの名前または識別子
に置き換えます。my-cluster
aws pcs get-cluster --region
region
--cluster-identifiermy-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"
}
]
}
}