This bundle handles connections w/ various Amazon AWS services.
Copyright (c) 2013 Underground Elephant
Licensed under the Apache License, Version 2.0.
See LICENSE-2.0.txt.
-
Add to composer.json under
require
"uecode/amazoa-bundle": "dev-master",
-
Register in
AppKernel
$bundles = array( // ... new Uecode\Bundle\UecodeBundle\UecodeBundle() new Uecode\Bundle\AmazonBundle\AmazonBundle()
-
Add Account info to your config.yml
uecode: amazon: accounts: connections: main: key: somekey secret: somesecret
In your code, after doing the above, you should be able to get an amazon service with:
// get container
$service = $container->get('uecode.amazon');
// Example to get a particular AWS object
// * AmazonClass - A wrapper for an Amazon service which would be located in Component/.
// * connection config key - A config value relative to
// uecode.amazon.accounts.connections (e.g., "main").
$obj = $service->getAmazonService('AmazonClass', '<connection config key>', array(<service options>));
// At present, this lib only has support for Amazon SWF.
$swf = $service->get('uecode.amazon')
->getAmazonService('SimpleWorkflow', '<connection config key>', array(<service options>));
This project is still in the making as are its docs but we should have some docs on creating SWF workflows soon.