TappNetwork / laravel-aws-secrets-manager

Manage environment secrets using AWS Secrets Manager.
MIT License
33 stars 20 forks source link

Get variables fix #3

Closed cwiggan closed 4 years ago

cwiggan commented 4 years ago

Details

Could not connect to aws secret manager and secrets results were empty

Local Testing:

AWS_ACCESS_KEY_ID AWS_SECRET_ACCESS_KEY AWS_DEFAULT_REGION="us-east-1" AWS_SECRETS_TAG_NAME="stage" AWS_SECRETS_TAG_VALUE="local" aws-secrets-manager.php add local 'enabled-environments' => [ 'production', ],

Steps to test changes

php artisan config:cache php artisan config:config Confirm no errors on dashboard.

cwiggan commented 4 years ago

I'm getting this error now with these updates:

[2020-07-28 12:42:43] local.ERROR: Credentials must be an instance of Aws\Credentials\CredentialsInterface, an associative array that contains "key", "secret", and an optional "token" key-value pairs, a credentials provider function, or false.

@swilla do there have values in env file AWS_ACCESS_KEY_ID AWS_SECRET_ACCESS_KEY