So have a req to filterout EFS based on Tags (Name or App code)
for EFS we cant use filter so the only way is to query so im getting the whole list by the below query but is there anyway can i query based on EFS name like myTest* provides only EFS that matches name myTest*
aws efs describe-file-systems --query "FileSystems[*].{FileSystemID:FileSystemId, Name:Name, SizeinBytes: SizeInBytes.Value}| []|reverse(sort_by(@, &SizeinBytes))" --region="us-east-1" --output table
Tried this but no luck:
aws efs describe-file-systems --query FileSystems[?Name=='myTest*'].FileSystemId --region us-east-1 --output text
Please assist