config.inc.php 3.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. <?php if (!class_exists('CFRuntime')) die('No direct access allowed.');
  2. /**
  3. * Stores your AWS account information. Add your account information, and then rename this file
  4. * to 'config.inc.php'.
  5. *
  6. * @version 2011.12.14
  7. * @license See the included NOTICE.md file for more information.
  8. * @copyright See the included NOTICE.md file for more information.
  9. * @link http://aws.amazon.com/php/ PHP Developer Center
  10. * @link http://aws.amazon.com/security-credentials AWS Security Credentials
  11. */
  12. /*###################################################################################################
  13. As of version 1.5, the AWS SDK for PHP uses the CFCredentials class to handle credentials.
  14. This class has the advantage of being able to support multiple sets of credentials at a time,
  15. including the ability for credential sets to inherit settings from other credential sets.
  16. Some example uses are noted at https://gist.github.com/1478912
  17. Notes:
  18. * You can define one or more credential sets.
  19. * Credential sets can be named anything that PHP allows for an associative array key;
  20. "production", "staging", etc., are just sample values. Feel free to rename them.
  21. * A credential set only has four required entries: key, secret, default_cache_config and
  22. certificate_authority. Aside from these, you can add any additional bits of information
  23. you'd like to keep easily accessible (e.g., multi-factor authentication device key, your
  24. AWS Account ID, your canonical identifiers).
  25. * Additional credential sets can inherit the properties of another credential set using the
  26. @inherit keyword.
  27. * If more than one credential set is provided, a default credential set must be specified
  28. using the @default keyword.
  29. * If you only have one credential set, you can set it to the @default keyword.
  30. * View the documentation for the CFCredentials::set() method to view usage examples.
  31. ###################################################################################################*/
  32. /**
  33. * Create a list of credential sets that can be used with the SDK.
  34. */
  35. CFCredentials::set(array(
  36. // Credentials for the development environment.
  37. 'development' => array(
  38. // Amazon Web Services Key. Found in the AWS Security Credentials. You can also pass
  39. // this value as the first parameter to a service constructor.
  40. 'key' => 'AKIAIGLZT3DZBJKOOOCA',
  41. // Amazon Web Services Secret Key. Found in the AWS Security Credentials. You can also
  42. // pass this value as the second parameter to a service constructor.
  43. 'secret' => 'XoKjkVI9r/TVzQl0uhuV45k1rCrx6ciDsv87QObr',
  44. // This option allows you to configure a preferred storage type to use for caching by
  45. // default. This can be changed later using the set_cache_config() method.
  46. //
  47. // Valid values are: `apc`, `xcache`, or a file system path such as `./cache` or
  48. // `/tmp/cache/`.
  49. 'default_cache_config' => 'apc',
  50. // Determines which Cerificate Authority file to use.
  51. //
  52. // A value of boolean `false` will use the Certificate Authority file available on the
  53. // system. A value of boolean `true` will use the Certificate Authority provided by the
  54. // SDK. Passing a file system path to a Certificate Authority file (chmodded to `0755`)
  55. // will use that.
  56. //
  57. // Leave this set to `false` if you're not sure.
  58. 'certificate_authority' => false
  59. ),
  60. // Specify a default credential set to use if there are more than one.
  61. '@default' => 'development'
  62. ));