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.

This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
Accepted Answer
Here is my bucket policy.json create from AWS S3 and It work with DO Spaces. Don’t forget to change to your bucketname and your domain.
{
"Version": "2017-10-17",
"Id": "http referer policy example",
"Statement": [
{
"Sid": "Allow get requests originating from www.yourdomain.com and subdomain.yourdomain.com.",
"Effect": "Allow",
"Principal": "*",
"Action": "s3:GetObject",
"Resource": "arn:aws:s3:::yourbucketname/*",
"Condition": {
"StringLike": {
"aws:Referer": [
"https://www.yourdomain.com/*",
"https://subdomain.yourdomain.com/*"
]
}
}
}
]
}
Try to create policy.json instead policy and run s3cmd setpolicy policy.json s3://my-bucket If still don’t work recheck the policy.json path is correct.
It’s work for me.
This comment has been deleted