I have run into problems trying to get DynamoDB Local up and running with my current laravel project.
The Laravel AWS SDK allows for a few keys to be set in the .env file to change the key/secret/region, but does not seem to support changing the endpoint, and that would be needed to use DynamoDB Local (key options are in the readme here: https://github.com/aws/aws-sdk-php-laravel).
The documentation for the regular PHP SDK seems pretty straight-forward about how to set up Dynamo DB Local:
$client = DynamoDbClient::factory(array(
'profile' => 'default',
'region' => 'us-west-2', #replace with your desired region
'endpoint' => 'http://localhost:8000'
));
With the Laravel AWS SDK I don't have direct access to the DynamoDBClient without hacking up a bunch of stuff that is necessary for the production DynamoDB connection.
For example with the Laravel AWS SDK the DynamoDB is accessed by something like:
$dynamoDB = AWS::get('DynamoDb');
I am really looking for something like an environment variable that can be changed so that I can easily switch between production and my local, but I can't find it.
Is there any easy way to set up DynamoDB Local with the Laravel AWS SDK?