Skip to content

AuthorizationHeaderMalformed when using credentials.NewStaticCredentialsProvider #1983

Answered by snebel29
snebel29 asked this question in Q&A
Discussion options

You must be logged in to vote

Oh, I think I found where the problem was, I was missing SigningRegion in the custom endpoint resolver.

	endpoint := aws.EndpointResolverWithOptionsFunc(func(service, region string, options ...interface{}) (aws.Endpoint, error) {
		return aws.Endpoint{
			URL: "https://s3.us-west-2.amazonaws.com",
                         SigningRegion:    "us-west-2",
		}, nil
	})

Cheers.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by snebel29
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant