You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you look in the CHANGELOG, the ability to detach an instance with the AutoScalingClient was not added until version 2.6.13. You will need an updated version of the SDK to use that feature.
The PHP SDK returns the following error when trying to execute a detachInstance request:
[02-Nov-2014 19:01:05 UTC] PHP Fatal error: Uncaught exception 'Guzzle\Common\Exception\InvalidArgumentException' with message 'Command was not found matching DetachInstances' in /usr/share/php/Guzzle/Service/Client.php:86
Stack trace:
#0 /usr/share/php/Guzzle/Service/Client.php(75): Guzzle\Service\Client->getCommand('DetachInstances', Array)
#1 /usr/share/php/Aws/Common/Client/AbstractClient.php(105): Guzzle\Service\Client->__call('DetachInstances', Array)
#2 /usr/local/sbin/dragonfly/release.aws.php(2076): Aws\Common\Client\AbstractClient->__call('detachInstances', Array)
#3 /usr/local/sbin/dragonfly/release.aws.php(2076): Aws\AutoScaling\AutoScalingClient->detachInstances(Array)
#4 /usr/local/sbin/dragonfly/release.aws.php(1412): Deploy->detachInstance('i-#######')
#5 /usr/local/sbin/dragonfly/release.aws.php(2258): Deploy->run()
#6 {main}
thrown in /usr/share/php/Guzzle/Service/Client.php on line 86
I'm using the following documentation:
http://docs.aws.amazon.com/aws-sdk-php/latest/class-Aws.AutoScaling.AutoScalingClient.html#_detachInstances
ubuntu@ip-10-10-1-43:/usr/share/php$ sudo aptitude versions php-aws-sdk
Package php-aws-sdk:
i 2.5.2-1 trusty 50
The text was updated successfully, but these errors were encountered: