Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

S3 "Error retrieving credentials from the instance profile metadata server" when using url() method #192

Open
Hitunen opened this issue Apr 13, 2018 · 0 comments

Comments

@Hitunen
Copy link

Hitunen commented Apr 13, 2018

Had said problem using laravel 5, stapler and laravel-stapler with S3 (outside EC2), and thought to report my 5c here in case it's a pain for someone else.

What resolved the issue for me was moving key & secret under a credentials array: From

's3_client_config' => [
    'key' => '',
    'secret' => '',
    'region' => '',
    'scheme' => 'http',
],

to

's3_client_config' => [
    'credentials' => [
        'key' => '',
        'secret' => '',
    ],
    'region' => '',
    'scheme' => 'http',
],

and changing Validator.php's validateS3Options() to validate the changed options instead.
(Naturally, i also updated the config file values.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant