Giter Club home page Giter Club logo

Comments (8)

vijaygarg-ahead avatar vijaygarg-ahead commented on September 3, 2024

@Shardj Can you check this issue ?

Can any one help for this issue ?

from zf1-future.

Pooky avatar Pooky commented on September 3, 2024

Hi,

can you post full code which you using there? Also the whole stack trace would help.

from zf1-future.

Shardj avatar Shardj commented on September 3, 2024

As I always say with these kinds of things, you really need to push through and convert to using AWS's SDK https://aws.amazon.com/sdk-for-php/ . From the sounds of it you're only just starting to implement this. If you really don't want to then I'd recommend you have a look at the authentication method AWS mentioned in your error message and compare it to the one Zend is using and see what's different. If you want to try and implement a new authentication method feel free as long as it doesn't cause any backwards compatibility breaks for anyone else.

from zf1-future.

davejennings avatar davejennings commented on September 3, 2024

We came across this long before moving to this fork when moving our production environment over from eu-west-1 to eu-west-2.

As Shardj has mentioned, you'd be better off replacing your usage of Zend_Service_Amazon_S3 with the AWS provided SDK. For us, that was as simple as pulling in that library with composer and replacing our bootstrapping of the stream wrapper e.g.

Replacing:

$s3 = new Zend_Service_Amazon_S3($key, $secret);
$s3->registerStreamWrapper("s3");

With:

$s3Client = new Aws\S3\S3Client([
    'region' => 'eu-west-2',
    'version' => 'latest',
    'credentials' => [
        'key' => $key,
        'secret' => $secret
    ]
]);
$s3Client->registerStreamWrapper();

from zf1-future.

Shardj avatar Shardj commented on September 3, 2024

Thanks for the advice Dave, I hope that this helps you @vijaygarg-ahead. I'll close this as I won't be taking any action here

from zf1-future.

vijaygarg-ahead avatar vijaygarg-ahead commented on September 3, 2024

Thanks for the advice Dave, I hope that this helps you @vijaygarg-ahead. I'll close this as I won't be taking any action here

I will check the above solutions and update here.

from zf1-future.

vijaygarg-ahead avatar vijaygarg-ahead commented on September 3, 2024

We came across this long before moving to this fork when moving our production environment over from eu-west-1 to eu-west-2.

As Shardj has mentioned, you'd be better off replacing your usage of Zend_Service_Amazon_S3 with the AWS provided SDK. For us, that was as simple as pulling in that library with composer and replacing our bootstrapping of the stream wrapper e.g.

Replacing:

$s3 = new Zend_Service_Amazon_S3($key, $secret);
$s3->registerStreamWrapper("s3");

With:

$s3Client = new Aws\S3\S3Client([
    'region' => 'eu-west-2',
    'version' => 'latest',
    'credentials' => [
        'key' => $key,
        'secret' => $secret
    ]
]);
$s3Client->registerStreamWrapper();

This solution is not working for me.

@Shardj Please can you check the above file I have mentioned and let me know the solution.

from zf1-future.

Shardj avatar Shardj commented on September 3, 2024

Hey @vijaygarg-ahead if you're having issues using the AWS SDK you should be able to find advice pretty much everywhere on the web since it's a very popular library. It's hard to provide a solution when I know nothing about the issue you're facing though.

from zf1-future.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.