Skip to content

credentiel params #2717

Discussion options

You must be logged in to vote

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!

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@mhammouda86
Comment options

Answer selected by yenfryherrerafeliz
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants