forked from ximbal/AWS_SWF_Demo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.php
35 lines (30 loc) · 799 Bytes
/
config.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
<?php
error_reporting(E_ALL);
ini_set('display_errors', 1);
require_once "./vendor/autoload.php";
require_once "credentials.php";
use Aws\Swf\SwfClient;
$settings = [
'domain' => [
'name' => 'Test Domain 2',
'description' => 'this is a test domain'
],
'workflow' => [
'name' => 'Test Workflow 1',
'description' => 'this is a test workflow',
],
'activity' => [
'name' => 'Test Activity 1',
'description' => 'this is our test activity'
]
];
// Create an instance of the SWF class
$client = SwfClient::factory( [
"credentials" => [
"key" => $credentials['key'],
"secret" => $credentials['secret'],
],
"region" => "eu-west-1",
"version" => "2012-01-25"
] );
?>