ECS bucket S3 versioning via GUI tools

ECS bucket S3 versioning via GUI toolsI’d like to test if I can use the most popular S3 testing tools S3 browser and Cyberduck to manage versioning feature.

  • Login to ECS via S3 Browser
  • Create a new bucket

ECS bucket S3 versioning via GUI tools

  • Check access with Cyberduck

ECS bucket S3 versioning via GUI tools

Enable versioning

Enable via API

  • Create request body file
host$ vi enable_versioning.xml
<?xml version='1.0' encoding='UTF-8' standalone='yes'?>
<VersioningConfiguration xmlns='http://s3.amazonaws.com/doc/2006-03-01/'>
     <Status>Enabled</Status>
</VersioningConfiguration>
  • Activate and check bucket versioning
host$ ./s3curl.pl --id=ecsid -- -s -X PUT -d @enable_versioning.xml http://10.0.0.1:9020/bucket1?versioning

host$ ./s3curl.pl --id=ecsid -- -s http://10.0.0.1:9020/bucket1?versioning | xmllint --format -
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<VersioningConfiguration xmlns="http://s3.amazonaws.com/doc/2006-03-01/">
   <Status>Enabled</Status>
</VersioningConfiguration>

Enable via S3 Browser

  • Create another bucket via S3 Browser

ECS bucket S3 versioning via GUI tools

  • Enable versioning
  • Navigate to Buckets > Edit Versioning Settings

ECS bucket S3 versioning via GUI tools

  • Re-check in CLI
host$ ./s3curl.pl --id=ecsid -- -s http://10.0.0.1:9020/S3BrowserBucket?versioning | xmllint --format -
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<VersioningConfiguration xmlns="http://s3.amazonaws.com/doc/2006-03-01/">
   <Status>Enabled</Status>
</VersioningConfiguration>

 

Enable via Cyberduck

  • Create one more bucket via Cyberduck for mac

ECS bucket S3 versioning via GUI tools-5

  • Navigate to File > Info > S3
  • Versioning is greyed out. So that feature is not available for Cyberduck.

ECS bucket S3 versioning via GUI tools-6

  • The same situation with Cyberduck for Windows. Versioning on top of ECS is not supported.

ECS bucket S3 versioning via GUI tools-7

I didn’t find a way how to enable and manage versioning on ECS S3 buckets via Cuberduck !

 

Upload new objects

Upload via API

  • Create a file
host$ vi file1.txt
Version 1
  • Upload the file via API
host$ ./s3curl.pl --id=ecsid -- -s -X PUT -d @file1.txt http://10.0.0.1:9020/bucket1/file1.txt
  • Check the file via API
host$ ./s3curl.pl --id=ecsid -- -s http://10.0.0.1:9020/bucket1 | xmllint --format -
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<ListBucketResult xmlns="http://s3.amazonaws.com/doc/2006-03-01/">
<Name>bucket1</Name>
<Prefix/>
<Marker/>
<MaxKeys>1000</MaxKeys>
<IsTruncated>false</IsTruncated>
<ServerSideEncryptionEnabled>false</ServerSideEncryptionEnabled>
<Contents>
   <Key>file1.txt</Key>
   <LastModified>2016-11-22T21:00:45Z</LastModified>
   <ETag>"d4b36e25c7ff304278d8f8203382ad65"</ETag>
   <Size>9</Size>
   <StorageClass>STANDARD</StorageClass>
   <Owner>
     <ID>objuser1</ID>
     <DisplayName>objuser1</DisplayName>
   </Owner>
</Contents>
</ListBucketResult>
  • Check the file in S3 Browser

ECS bucket S3 versioning via GUI tools-8

 

Upload via S3 Browser

  • Modify the file
host$ vi file1.txt
Version 2
  • Upload the file via S3 browser (you can do that via API or Cuberduck)

ECS bucket S3 versioning via GUI tools

  • The file is re-written

ECS bucket S3 versioning via GUI tools

 

Upload via Cyberduck

  • Modify the file one more time
host$ vi file1.txt
Version 3
  • Upload the 3 version of the file via Cyberduck (you can do that via API or S3 Browser)

ECS bucket S3 versioning via GUI tools

ECS bucket S3 versioning via GUI tools-12

  • Enable “Show hidden files” option
  • Check the file in Cyberduck
  • No versions of the file presented

ECS bucket S3 versioning via GUI tools-13

ECS bucket S3 versioning via GUI tools

Cyberduck is the wrong tool to play with versioning on ECS !

 

  • Check the file in S3 Browser
  • The latest version of the file is available

ECS bucket S3 versioning via GUI tools

 

Check all versions

  • Navigate to Versions
  • All 3x versions of the file are available.

ECS bucket S3 versioning via GUI tools

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s