upload photo to AWS s3 (laravel 5.1)
I tried to upload photo to AWS s3 .. but i got this error. From this error, i think my access key and secret that connect to aws is wrong, but it is not, the key is exactly correct. i really stucked at this error now. please do help me.
InstanceProfileCredentialsException in InstanceMetadataClient.php line 85: Error retrieving credentials from the instance profile metadata server. When you are not running inside of Amazon EC2, you must provide your AWS access key ID and secret access key in the "key" and "secret" options when creating a client or provide an instantiated Aws\Common\Credentials\CredentialsInterface object. ([curl] 28: Connection timed out after 5000 milliseconds [url] http://169.254.169.254/latest/meta-data/iam/security-credentials/)
Please or to participate in this conversation.