Scale up as you grow — whether you're running one virtual machine or ten thousand.

From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.

Hi everyone,
Hoping someone can help me out. I’m using DigitalOcean spaces and I want to back-up spaces to another space in another region.
I’m using the Node.js library “@aws-sdk/client-s3”. When I use the “CopyObjectCommand” to copy files between spaces in the same region it works perfectly fine. However, when I try to do it across regions it no longer works.
My flow: I instantiate a client in the “Origin” region, like this:
GetOriginClient(Space){
return new S3Client({
region: Space.region,
endpoint: "https://"+Space.region+".digitaloceanspaces.com",
credentials:{
accessKeyId:process.env.DO_SPACES_ACCESS_KEY,
secretAccessKey:process.env.DO_SPACES_ACCESS_SECRET
}
});
}
I then use “ListObjectsCommand” to get all the keys in the Origin space, which also works fine. Next I instantiate a DestinationClient in the same way, except in a different region. Finally, I instantiate a CopyObject command for each of the Objects i received, with the following params:
{
Bucket: 'destination-bucket'
CopySource: 'origin-bucket/backup/folder/subfolder/file.txt',
Key: 'folder/subfolder/file.txt'
}
I also tried adding the source region (but i read this is not nescecery):
{
Bucket: 'destination-bucket',
CopySource: 'ams3/origin-bucket/backup/folder/subfolder/file.txt',
Key: 'folder/subfolder/file.txt'
}
Getting error code 404, Code: ‘NoSuchBucket’. Any ideas?
SarkariResultht
KFSys
Arne van Hoorn
alexdo
4287c71658bd4ea39bef277d491b1c
4287c71658bd4ea39bef277d491b1c
Demanix
Demanix
devjk1
Jordan
LC Labs Sp. z o.o.
a0cd9be01b14447384f79073fc121f