Skip to content

Instantly share code, notes, and snippets.

@zkwentz
Created June 19, 2013 22:42
Show Gist options
  • Save zkwentz/5818773 to your computer and use it in GitHub Desktop.
Save zkwentz/5818773 to your computer and use it in GitHub Desktop.
Sample config for AWS-SDK-PHP
<?php
global $aws_key, $aws_secret, $aws_region;
return array(
'services' => array(
'default_settings' => array(
'params' => array(
'key' => $aws_key,
'secret' => $aws_secret,
'region' => $aws_region
)
),
'dynamodb' => array(
'extends' => 'default_settings',
'class' => 'Aws\DynamoDb\DynamoDbClient'
),
's3' => array(
'extends' => 'default_settings',
'class' => 'Aws\S3\S3Client',
'LocationConstraint' => $aws_region
)
)
);
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment