This operation is used for copying a CLI package stored in Amazon S3 to a controller node and other purposes. Please see the AWS CLI documentation for options and details.
-
List buckets and objects
- Syntax
-
aws s3 ls <target> [--options]
- Example
- The following example lists all of your Amazon S3 buckets.
-
$ aws s3 ls 2022-03-15 02:50:30 my-vssb-bucket 2022-02-10 08:58:38 my-vssb-bucket2
- The following command lists all objects and prefixes in a bucket.
-
$ aws s3 ls s3://my-vssb-bucket PRE tmp/ PRE tmp2/ 2022-04-11 04:29:17 1700 test.txt
-
Copy objects
- Syntax
-
aws s3 cp <source> <target> [--options]
- Example
- The following example copies a file (test.txt) from your Amazon S3 bucket (my-vssb-bucket) to your current working directory.
-
$ aws s3 cp s3://my-vssb-bucket/test.txt ./
- The following example copies a file (test2.txt) to your Amazon S3 bucket (my-vssb-bucket).
-
$ aws s3 cp test2.txt s3://my-vssb-bucket