Cybernox/AmazonWebServicesBundle — Issue #2: Renaming secret_key to secret breaks AWS classes
Author: dustinwhittle
Created: 2012-01-05 06:03:30+00:00
State: open

Thanks for the great bundle! In commit fdd2c35cb88e9d5094e117915eb74578e8f111f4 you broke the aws sdk (see s3 for example). The aws classes expect a secret_key as an option and it was renamed. Also, can you add a default credential from parsed config:

class AmazonWebServices
{
private $parameters = null;

public function __construct(array $parameters)
{
$this->parameters = $parameters;
$this->parameters['secret_key'] = $parameters['secret'];

\CFCredentials::set(array(
'runtime' => array_merge($parameters, array('secret_key' => $parameters['secret'])),
'@default' => 'runtime'
));
}
}