因此,尝试通过aws-cli和根目录路径列出访问点:
以下是命令的输出:
aws-efs描述了接入点——region=";us-east-1">
{
"AccessPoints": [
{
"ClientToken": "console-3d1f4938-4969-48c2-98e5-a0bcb24ab",
"Name": "Root-Dummy",
"Tags": [
{
"Key": "Name",
"Value": "Root-Dummy"
}
],
"AccessPointId": "fsap-0333cca0bcb24ab",
"AccessPointArn": "arn:aws:elasticfilesystem:us-east-1:1234567:access-point/fsap-0333cca0bcb24ab",
"FileSystemId": "fs-dffb782e",
"RootDirectory": {
"Path": "/"
},
"OwnerId": "1234567",
"LifeCycleState": "available"
},
{
"ClientToken": "console-789851e7f-5423-4179-bad0-9a5eddd774c80",
"Name": "dummy-app",
"Tags": [
{
"Key": "Name",
"Value": "dummy-app"
}
],
"AccessPointId": "fsap-03443cca0bcb24ab",
"AccessPointArn": "arn:aws:elasticfilesystem:us-east-1:1234567:access-point/fsap-03443cca0bcb24ab",
"FileSystemId": "fs-dffb782e",
"RootDirectory": {
"Path": "/export/apps/dummy"
},
"OwnerId": "1234567",
"LifeCycleState": "available"
}
]
}
尝试了下面的,但没有幸运的根目录路径-列出所有访问点的命令如果我从下面的命令中取出根目录
aws efs describe-access-points --query "AccessPoints[*].{AccessPointId:AccessPointId, FileSystemID:FileSystemId, LifeCycleState:LifeCycleState, OwnerId:OwnerId, Name:Name}, RootDirectory[*].{Path:Path}" --region="us-east-1" --output table
在这里寻找一些输入,我可以列出accespoint ID,甚至根目录路径值
我得到了……这给出了所需的输出
aws efs describe-access-points --query "AccessPoints[*].{AccessPointId:AccessPointId, FileSystemID:FileSystemId, LifeCycleState:LifeCycleState, OwnerId:OwnerId, Name:Name, Path:RootDirectory.Path}" --region="us-east-1" --output table