I have run into a problem doing a copy in Tigris. I’m in Elixir using the latest versions of ex_aws
and ex_aws_s3
.
from_bucket = "my-bucket"
to_bucket = from_bucket
from_key = "landing/file.txt"
to_key = "archive/file.txt"
ExAws.S3.put_object_copy(
to_bucket,
to_key,
from_bucket,
from_key
)
|> ExAws.request()
Running this in S3 works fine. In Tigris I get 10 failed attempts and then this error.
{:error,
{:http_error, 500,
"<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<Error><Code>InternalError</Code><Message>We encountered an internal errors, please try again.</Message><Resource>/my-bucket/archive/file.txt</Resource><RequestId>...</RequestId><Key>archive/file.txt</Key><BucketName>my-bucket</BucketName></Error>"}}
Other operations have been working with this bucket, so it doesn’t seem to be a credentials issue.
> Application.get_all_env :ex_aws
[
s3: [scheme: "https://", host: "fly.storage.tigris.dev", region: "auto"],
region: [{:system, "AWS_REGION"}, :instance_role],
debug_requests: true,
secret_access_key: "...",
json_codec: Jason,
access_key_id: "..."
]