Skip to content

createPresignedRequest return 403 when using Server-Side Encryption with Customer Key #2429

Answered by yenfryherrerafeliz
zishanj asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @zishanj, I hope you are doing well. I tested with the 3.92 version and I got no issues, so that probably the issue could be something else. Could you please try, if you have not yet, to send the http request in a different way?, like using guzzle. I can provide you with a sample code that you could use as reference:

// Remember to use the following namespaces:
// use GuzzleHttp\Client;
// use GuzzleHttp\Exception\GuzzleException;

$client = new Client(); // Guzzle client.
if ($method == 'PUT') {

    $response = $client->put($uri, array(
        'headers' => $headers
    ));

}
The whole sample code will look like this:
try {
    $fileName = 'test-file.txt';
    $contentType = 'te…

Replies: 13 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

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

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
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
guidance Question that needs advice or information. response-requested Waiting on additional info and feedback. Will move to "closing-soon" in 7 days.
4 participants
Converted from issue

This discussion was converted from issue #2402 on April 18, 2022 22:03.