Quantcast
Channel: Active questions tagged symfony4 - Stack Overflow
Viewing all articles
Browse latest Browse all 3924

How to cache DynamoDB credentials using symfony 4

$
0
0

symfony: 4.4

aws-php-sdk: 3.83

I injected the Aws\DynamoDb\DynamoDbClient using Symfony 4 services like this:

Aws\DynamoDb\DynamoDbClient:
    arguments:
        -
            region: '%dynamodb.region%'
            version: 'latest'
            endpoint: '%dynamodb.client.endpoint%'
            credentials:
                key: '%dynamodb.client.key%'
                secret: '%dynamodb.client.secret%'
            http:
                connect_timeout: 0.3
                timeout: 1
            retries: 0
            validate: '%dynamodb.client.validate%'

How would I cache the credentials to don't call each time?


Viewing all articles
Browse latest Browse all 3924

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>