ACloudGuru / dynamodb

27 stars 91 forks source link

Add version DynamoDbClient connection #2

Closed jghaines closed 5 years ago

jghaines commented 8 years ago

The previous code gives the following error: PHP Fatal error: Uncaught exception 'InvalidArgumentException' with message 'Missing required client configuration options:

version: (string)

A "version" configuration value is required. Specifying a version constraint ensures that your code will not be affected by a breaking change made to the service. For example, when using Amazon S3, you can lock your API version to "2006-03-01".

Your build of the SDK has the following version(s) of "dynamodb": * "2012-08-10"

You may provide "latest" to the "version" configuration value to utilize the most recent available API version that your client's API provider can find. Note: Using 'latest' in a production application is not recommended.

A list of available API versions can be found on each client's API documentation page: http://docs.aws.amazon.com/aws-sdk-php/v3/api/index.html. If you are unable to load a specific API version, then you may need to update your copy of the SDK.' in /var/www/html/vendor/aws/aws-sdk-php/src/ClientResolver.php:328 St in /var/www/html/vendor/aws/aws-sdk-php/src/ClientResolver.php on line 328

ghost commented 5 years ago

Scripts now have version. I fully tested the scripts and they work fine as per the Lab now Rusty