![]() If you have any best practices and EC2 CLI commands please let us know in the commands for us and others to learn from you. ![]() This can be a good example of aws efs describe-file-systems command with sorting. Hope this short article helped you and you can implement this Sort descending or ascending with sort_by and reverse(sort_by) function in any other EC2 CLI commands while querying. | fs-46e****7 | eks-sharedrive | 322668544 | Amazon Elastic File System (Amazon EFS) provides simple, scalable file storage for use with Amazon EC2 instances in the AWS Cloud. An EFS file system may be accessed concurrently by. ~|⇒ aws efs describe-file-systems – query "FileSystems.| &SizeinBytes)" – profile prod – output table An EFS file system may be created and configured either from the AWS Management Console or using AWS CLI. Here is the complete AWS CLI command to list file systems sorted by size in descending order. In order to give access to an EC2 (or any other AWS service) to mount the EFS, its needed to allow in the EFS security group an inbound NFS (2049 port) rule. you can read more about JMESPath Sort_by function to understand how it works. &SizeinBytes)Īs we want to sort in descending order, we need to use reverse the sort_by function like this &SizeinBytes))Īs AWS CLI uses JMESPath for the querying. With in the query we are using the sort_by function to sort the SizeInBytes field, By Default it would be sorted in Ascending order. We are going to use aws efs describe-file-systems command here with query to select only the necassary elements of the entire output. With no further ado, lets go the objective.ĪWS CLI List EFS - Sort by Size Descending you might want to take a look may be later. Aws efs cli list files GitHub - aws-samples/aws-lambda-efs-samples: AWS SAM How to upload local files to AWS Elastic File System (EFS) WebJul 28. There is a dedicated post of AWS CLI EC2 examples. While am sharing all the new tricks in AWS CLI I come across. In this post we are going to see an aws cli command to list elastic file systems sorted by Size in ascending or descending order.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |