Quick way to list all files in Amazon S3 bucket?

前端 未结 28 1807
星月不相逢
星月不相逢 2020-11-28 01:32

I have an amazon s3 bucket that has tens of thousands of filenames in it. What\'s the easiest way to get a text file that lists all the filenames in the bucket?

28条回答
  •  抹茶落季
    2020-11-28 01:49

    AWS CLI can let you see all files of an S3 bucket quickly and help in performing other operations too.

    To use AWS CLI follow steps below:

    1. Install AWS CLI.
    2. Configure AWS CLI for using default security credentials and default AWS Region.
    3. To see all files of an S3 bucket use command

      aws s3 ls s3://your_bucket_name --recursive

    Reference to use AWS cli for different AWS services: https://docs.aws.amazon.com/cli/latest/reference/

提交回复
热议问题