I have set up a staging server with a separate bucket, created IAM user which has full S3 permissions and generated keys for it.
When I try to list bucket contents using those keys with AWS CLI, all is good. When I do the same using Laravel by populating following env variables:
FILESYSTEM_DISK=s3
AWS_DEFAULT_REGION=us-west-2
AWS_BUCKET=staging-bucket
AWS_ACCESS_KEY_ID=...
AWS_SECRET_ACCESS_KEY=...
After executing Storage::allDirectories() I get an empty array after like 20s. Any ideas?