You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hence I figured I should call the functionality in here as such, passing a vector of dictionaries:
functions3_delete(aws::AbstractAWSConfig, bucket, paths::Vector; kwargs...)
delete = []
for path in paths
push!(delete, Dict("Object"=>Dict("Key"=> path)))
endreturnparse(S3.delete_objects(bucket, delete; aws_config=aws, kwargs...))
end
That however throws a signature error:
ERROR: AWS.AWSExceptions.AWSException: SignatureDoesNotMatch -- The request signature we calculated does not match the signature you provided. Check your key and signing method.
Looking at https://docs.aws.amazon.com/AmazonS3/latest/API/API_DeleteObjects.html#API_DeleteObjects_RequestSyntax, this API needs to be invoked with a Delete>NxObject>Key hierarchy, which AWS.jl already provides the toplevel Delete entry:
AWS.jl/src/services/s3.jl
Line 1570 in 5ebf8ca
Hence I figured I should call the functionality in here as such, passing a vector of dictionaries:
That however throws a signature error:
The
delete
object I pass is as follows:Calling
S3.delete_object
with this key works fine.The text was updated successfully, but these errors were encountered: