Object Store operations using AWS client

You can run the following commands for performing OBS operations using AWS Client.

  1. Creating a bucket aws s3api --endpoint-url create-bucket --bucket=obs-s3bucket
  2. Bucket Info ozone sh bucket info /s3v/obs-s3bucket
  3. Writing a file to bucket
    1. aws s3 cp --endpoint-url ozone.txt s3://obs-s3bucket/dir1/dir2/dir3/##awsfile1
    2. aws s3 cp --endpoint-url ozone.txt s3://obs-s3bucket/dir1/dir2/dir3/##awsfile2
  4. Reading the above file from bucket
    1. rm -rf /tmp/sample.txt
    2. ozone sh key get /s3v/obs-s3bucket/dir1/dir2/dir3/##awsfile1 /tmp/sample.txt
    3. cat /tmp/sample.txt
  5. Listing bucket object aws s3api --endpoint-url list-objects --bucket obs-s3bucket
  6. Deleting a key aws s3 rm --endpoint-url s3://obs-s3bucket/dir1/dir2/dir3/awsfile1