AWS Directory Bucket access
OpenVDS 3.4.0 does not connect to the new AWS Directory Bucket.
url = 's3://vds--use1-az4--x-s3/rline1601'
connection = "Region = us-east-1"
vds = openvds.open(url, connection)
Generates the error:
RuntimeError: Error on downloading VolumeDataLayout object: Http error response: 404 -> vds--use1-az4--x-s3.s3.us-east-1.amazonaws.com/rline1601/VolumeDataLayout: The specified bucket does not exist.
The error makes sense, because the correct address for the file is:
vds--use1-az4--x-s3.s3express-use1-az4.us-east-1.amazonaws.com/rline1601/VolumeDataLayout
So, currently OpenVDS forms the address by inserting 's3' between the bucket and the region, but for a Directory Bucket this is incorrect and should be 's3express-use1-az4'.
I would assume that the 's3express' part is universal, but that '-use1-az4' needs to be coming from the specified url.
I don't mind tinkering with the code and seeing how this can be fixed. But, it would be great is someone (Morten?) can point me to the part of the code where these addresses are formed. I have an example Python script that correctly reads a file from a Directory bucket, see below.