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
I have credential-less access to private S3 buckets. Access is granted to individual Docker containers. I am trying to upload a file using PutObject using the aws-sdk-go-v2 SDK library, but I'm continually getting a 403 AccessDenied api error.
I am using aws.AnonymousCredentials{} (as our access is credential-less) but this is only supposed to be used for unsigned requests. I cannot use NewStaticCredentialsProvider with empty values for AccessKeyID and/or SecretAccessKey as this will throw a StaticCredentialsEmptyError during the Retrieve(). Adding dummy credentials will throw an error that they are not on record. I am assuming that this is the cause of my 403 AccessDenied.
How do I sign requests without providing credentials in the Go SDK? Is it even possible? In the boto3 Python library this works fine.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I have credential-less access to private S3 buckets. Access is granted to individual Docker containers. I am trying to upload a file using
PutObject
using the aws-sdk-go-v2 SDK library, but I'm continually getting a 403 AccessDenied api error.My upload code looks like this:
I am using
aws.AnonymousCredentials{}
(as our access is credential-less) but this is only supposed to be used for unsigned requests. I cannot useNewStaticCredentialsProvider
with empty values forAccessKeyID
and/orSecretAccessKey
as this will throw aStaticCredentialsEmptyError
during theRetrieve()
. Adding dummy credentials will throw an error that they are not on record. I am assuming that this is the cause of my403 AccessDenied
.How do I sign requests without providing credentials in the Go SDK? Is it even possible? In the boto3 Python library this works fine.
Beta Was this translation helpful? Give feedback.
All reactions