Error retrieving credentials from the instance profile metadata service. #219
Unanswered
alexfleites
asked this question in
Q&A
Replies: 1 comment
-
Hi @alexfleites, thanks for opening this discussion. Which type of credential provider are you trying to use?, if you want to use credential from the environment you could specify it when instancing the client. Example below: $envProvider = CredentialProvider::env();
$client = new S3Client([
'version' => 'latest',
'region' => 'REGION',
'credentials' => $envProvider
]); If this does not work, so then you need to make sure the variables are being set. Thanks! |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Some body have experience this issue before, working win docker using lando.dev getting this error and cannot find a solution: "Error retrieving credentials from the instance profile metadata service. (cURL error 7: Failed to connect to 169.254.169.254 port 80: Connection refused (see https://curl.haxx.se/libcurl/c/libcurl-errors.html))"
BTW aws credentials are already created and added to the .env file.
Beta Was this translation helpful? Give feedback.
All reactions