Aws-sdk-php: SDK v2.6.9 and Signature v4

Created on 3 Apr 2019  路  2Comments  路  Source: aws/aws-sdk-php

Hi,
Hope you are doing well.

I have a question, i am using SDK v2.6.9 and i heard about signature v2 will be deprecated on June 24.
I've changed signature to v4 by adding signature when creating an instance

S3Client::factory(array(
    'key' => $key,
    'secret' => $secret,
    'region' => $region,
    'signature' => 'v4',
));

But i also saw a table, that told me have to update SDK to v3 to adopt the signature v4. It make me confused, because i am using SDK v2 and also can send v4 signature to server by the code piece above.
My system was made from 2013 so, it's really heavy and difficult to change

So my question is: Do I have to change SDK to v3? or can continuously using SDK v2?

Thank you for reading and answer

guidance

Most helpful comment

Thanks for reaching out to us @crazyfree. Version 2 of the AWS SDK for PHP does support signing requests using Signature Version 4 by including the signature parameter in the client configuration as you've shown, so an upgrade to version 3 is not required to continue interacting with S3 once Signature Version 2 has been deprecated.

That being said, we do recommend upgrading to version 3 of the AWS SDK for PHP if you need to use features implemented after the most recent 2.x release of the SDK.

All 2 comments

Thanks for reaching out to us @crazyfree. Version 2 of the AWS SDK for PHP does support signing requests using Signature Version 4 by including the signature parameter in the client configuration as you've shown, so an upgrade to version 3 is not required to continue interacting with S3 once Signature Version 2 has been deprecated.

That being said, we do recommend upgrading to version 3 of the AWS SDK for PHP if you need to use features implemented after the most recent 2.x release of the SDK.

Thank you for the answer, very clear.
Please close this.

Was this page helpful?
0 / 5 - 0 ratings