-
Notifications
You must be signed in to change notification settings - Fork 250
Closed
Labels
bugThis issue is a bug.This issue is a bug.closed-for-stalenessneeds-reproductionThis issue needs reproduction.This issue needs reproduction.response-requestedWaiting on additional info and feedback. Will move to "closing-soon" in 7 days.Waiting on additional info and feedback. Will move to "closing-soon" in 7 days.
Description
Confirm by changing [ ] to [x] below to ensure that it's a bug:
- I've gone though Developer Guide and API reference
- I've checked AWS Forums and StackOverflow for answers
- I've searched for previous similar issues and didn't find any solution
Describe the bug
After performing the settings indicated in the documentation, I tried to use it in a service, according to the code below, and I got the error: Unresolvable dependency resolving [Parameter #0 [ <required> array $args ]] in class Aws\AwsClient
my code
namespace App\Services\Xpi;
use Aws\Exception\AwsException;
use Aws\SecretsManager\SecretsManagerClient;
...
$clientAWS = new awsSecretManage([
'profile' => 'default',
'version' => 'latest',
'region' => env('AWS_REGION'),
]);
$token_development = $clientAWS->getSecretValue([
'SecretId' => 'bff-dsv',
]);
And on the controller
use App\Services\Xpi\Client;
$clientXP = $clientXP->getClient('xxxxxx');
Version of AWS SDK for PHP?
Version of AWS Service Provider for Laravel?
Version of Laravel (php artisan --version
)?
3.185.2
Version of PHP (php -v
)?
7.3.22
Screenshots
Metadata
Metadata
Assignees
Labels
bugThis issue is a bug.This issue is a bug.closed-for-stalenessneeds-reproductionThis issue needs reproduction.This issue needs reproduction.response-requestedWaiting on additional info and feedback. Will move to "closing-soon" in 7 days.Waiting on additional info and feedback. Will move to "closing-soon" in 7 days.