List the objects in S3 bucket: $ aws s3 ls s3:// If this variable is not defined or the -profile parameter is not set, the AWS CLI will use the profile named default. List S3 buckets available for the named profile: $ aws -profile s3 lsĭefault Profile: Whenever you want to specify the AWS profile to use, you have to invoke the AWS command with the -profile parameter or you can set the environment variable AWS_DEFAULT_PROFILE. List all S3 buckets owned by the current user: $ aws s3 ls In this note i will show how to list Amazon S3 buckets and objects from the AWS CLI using the aws s3 ls command. Amazon Simple Storage Service (S3) stores data as objects within resources called buckets.Įach Amazon S3 object consist of a key (file name), data and metadata that describes this object.Īmazon S3 lets you store and retrieve data via API over HTTPS using the AWS command-line interface (CLI).
0 Comments
Leave a Reply. |