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

steps for entering the access key & secret key in composer for dynamo db #3220

Closed
lakshayjain opened this issue Aug 19, 2014 · 3 comments
Closed
Labels

Comments

@lakshayjain
Copy link

i want to know about the steps for setting up the composer for dynamodb for sdk php

i am getting error:-
C:\Users\LAKSHAYpc>php sample.php
Creating bucket named php-sdk-sample-53f2f056ec97c0.91281925

Fatal error: Uncaught exception 'Aws\Common\Exception\InstanceProfileCredentials
Exception' with message '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\Credent
ialsInterface object. ([curl] 28: Connection timed out after 5000 milliseconds [
url] http://169.254.169.254/latest/meta-data/iam/security-credentials/)' in C:\U
sers\LAKSHAYpc\vendor\aws\aws-sdk-php\src\Aws\Common\InstanceMetadata\InstanceMe
tadataClient.php:85
Stack trace:
#0 C:\Users\LAKSHAYpc\vendor\aws\aws-sdk-php\src\Aws\Common\Credentials\Refresha

bleInstanceProfileCredentials.php(52): Aws\Common\InstanceMetadata\InstanceMetad
ataClient->getInstanceProfileCredentials()
#1 C:\Users\LAKSHAYpc\vendor\aws\aws-sdk-php\src\Aws\Common\Credentials\Abstract

RefreshableCredentials.php(54): Aws\Common\Credentials\RefreshableInstanceProfil
e in C:\Users\LAKSHAYpc\vendor\aws\aws-sdk-php\src\Aws\Common\InstanceMetadata\I
nstanceMetadataClient.php on line 85

@stof
Copy link
Contributor

stof commented Aug 19, 2014

Are you trying to use the composer-s3-plugin without configuring your credentials ?

But anyway, this should be reported to the plugin if you use it (or to any other library you use whcih requires the AWS SDK). Composer itself does not use the AWS SDK

@lakshayjain
Copy link
Author

so how to use aws sdk for dynamo db.
& i am using composer so could please tell me how to provide credentials in composer

@stof
Copy link
Contributor

stof commented Aug 20, 2014

Well, this is even worse. When looking at your description again, the error does not even appear when running composer, but when running some other PHP code. So this has nothing to do with Composer at all.

The Composer issue tracker is not a support channel for the AWS SDK. Contact the AWS SDK support instead.

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

No branches or pull requests

3 participants