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
4.Using credentials from environment variables, credentials profiles or env provider[...]
so i suppose this feature isn't effective after all.
In the PHPDoc of the AwsClient constructor we can see :
(Aws\Credentials\CredentialsInterface|array|bool|callable) [...] If no credentials are provided, the SDK will attempt to load them from the environment.
So instead of use
$this->sdk = new Sdk(
array(
'region' => $this->getRegion(),
// use specific aws sdk php version or latest version if not defined
'version' => ($this->getVersion() != ' ' ) ? $this->getVersion() : 'latest',
'credentials' => CredentialProvider::env()
)
);
$options = array(
'region' => $this->getRegion(),
// use specific aws sdk php version or latest version if not defined
'version' => ($this->getVersion() !== '') ? $this->getVersion() : 'latest',
);
if ($this->getKey() !== '' && $this->getSecret() !== '') {
$options['credentials'] = new Credentials($this->getKey(), $this->getSecret());
}
$this->sdk = new Sdk($options);
Hope this could help.
The text was updated successfully, but these errors were encountered:
you are right, this feature hasn't been implemented yet, and is was planned for the next release, i'll commit some fix regarding unit tests and services including all credentials providers methods namely env credentials provider. many thanks for your updates
Hi !
There is a feature described in the README :
But i can see in doc/todo.md file :
so i suppose this feature isn't effective after all.
In the PHPDoc of the AwsClient constructor we can see :
So instead of use
suggested in doc/todo.md, we should use :
Hope this could help.
The text was updated successfully, but these errors were encountered: