1
遇到一些麻煩,此代碼:AWS SDK PHP(2)捲曲超時安全檢查
$ec2 = Ec2Client::factory(array(
'AWS_KEY' => AWS_KEY,
'AWS_SECRET_KEY' => AWS_SECRET_KEY,
'region' => 'us-east-1',
));
echo "<pre>";
var_dump($ec2->describeInstances());
我不斷收到這樣的:
Fatal error: Uncaught exception 'Guzzle\Http\Exception\CurlException' with message '[curl] 28: Connection time-out [url] http://169.254.169.254/latest/meta-data/iam/security-credentials/' in /**/**/**/htdocs/**/vendor/Guzzle/Http/Curl/CurlMulti.php:578
我也收到這個,如果我使用$aws = AWS::factory()
跟着通過$ec2 = $aws->get('ec2')
Bah,這麼簡單的事情。謝謝。 – 2013-04-10 03:45:54