credentiel params #2717
-
Hello, How i can set The $key and $secret or find it? Thanks |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Hi @mhammouda86, here is a quick example of how to provide credentials when initializing a client: <?php
use Aws\SecretsManager\SecretsManagerClient;
$client = new SecretsManagerClient([
'version' => 'latest',
'region' => 'REGION',
'credentials' => [
'accessKeyId' => 'YOUR_ACCESS_KEY',
'secretAccessKey' => 'YOUR_SECRET_ACCESS_KEY'
]
]); I hope this help! Thanks! |
Beta Was this translation helpful? Give feedback.
-
Hello! Reopening this discussion to make it searchable. |
Beta Was this translation helpful? Give feedback.
Hi @mhammouda86, here is a quick example of how to provide credentials when initializing a client:
I hope this help!
Thanks!