Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

AntLusher's avatar

AWS S3 acess/permissions issue

Hello all,

I've been trying to hook up to S3 using the built-in filestorage and the s3 driver with no success.

I'm developing on local, so I'm wondering if that could be the issue? I've also seen on Flysystem website that the config array differs from the one used in Laravel?!

I keep getting curl permission and/or timeout errors.

Have anyone had the same issues?

Thank, Ant

0 likes
8 replies
bobbybouwmann's avatar

@antlusher You need to make sure your S3 is publicly available if you want to access it from your local environment. In general if you just follow the instructions in the docs it should work out of the box!

Snapey's avatar

It does not need to be public, but you do need to setup an IAM account for the bucket so that the account credentials can be added to your flysystem settings.

There should be no difference doing it locally.

AntLusher's avatar

Thanks guys. Yep, the bucket is 100% public. All creds are correct. I'll have another investigation and report back findings.

AntLusher's avatar

Hi all - thank you for your time. Gave it another go. Bucket full public access (will change back after testing) https://s3.eu-west-2.amazonaws.com/laravel-lusher/avd-logo.png

LARAVEL Error: Aws \ Exception \ CredentialsException Error retrieving credentials from the instance profile metadata server. (cURL error 28: Connection timed out after 1003 milliseconds (see http://curl.haxx.se/libcurl/c/libcurl-errors.html))

AND

Error retrieving credentials from the instance profile metadata server. (cURL error 7: (see http://curl.haxx.se/libcurl/c/libcurl-errors.html))

Hmmmm

deepak1234's avatar

HI we have also face same issue please suggest me what i am doing

deepak1234's avatar

HI

we have faced issue of email send through aws configration but my project deployed on linux server.

Issue.

Error retrieving credentials from the instance profile metadata server. (cURL error 28: Connection timed out after 1003 milliseconds (see https://curl.haxx.se/libcurl/c/libcurl-errors.html))

Please suggest me to resolve this issue

bobbybouwmann's avatar

@deepak1234 Please create a new thread. Asking a new question on an existing thread won't get you the answers you need.

Please or to participate in this conversation.