Skip to content

A free open source IT asset/license management system

Add Token support for AWS services

Brady Wetherington4a430e183c64
diff --git a/config/cache.php b/config/cache.php
index 260afc1086..518c7cc00d 100644
--- a/config/cache.php
+++ b/config/cache.php
@@ -107,6 +107,7 @@ return [
'driver' => 'dynamodb',
'key' => env('AWS_ACCESS_KEY_ID'),
'secret' => env('AWS_SECRET_ACCESS_KEY'),
+ 'token' => env('AWS_SESSION_TOKEN'),
'region' => env('AWS_DEFAULT_REGION', 'us-east-1'),
'table' => env('DYNAMODB_CACHE_TABLE', 'cache'),
'endpoint' => env('DYNAMODB_ENDPOINT'),
diff --git a/config/filesystems.php b/config/filesystems.php
index d5087b3663..6324e67408 100644
--- a/config/filesystems.php
+++ b/config/filesystems.php
@@ -60,6 +60,7 @@ $config = [
'driver' => 's3',
'key' => env('PUBLIC_AWS_ACCESS_KEY_ID'),
'secret' => env('PUBLIC_AWS_SECRET_ACCESS_KEY'),
+ 'token' => env('PUBLIC_AWS_SESSION_TOKEN'),
'region' => env('PUBLIC_AWS_DEFAULT_REGION'),
'bucket' => env('PUBLIC_AWS_BUCKET'),
'url' => env('PUBLIC_AWS_URL'),
@@ -78,6 +79,7 @@ $config = [
'driver' => 's3',
'key' => env('PRIVATE_AWS_ACCESS_KEY_ID'),
'secret' => env('PRIVATE_AWS_SECRET_ACCESS_KEY'),
+ 'token' => env('PRIVATE_AWS_SESSION_TOKEN'),
'region' => env('PRIVATE_AWS_DEFAULT_REGION'),
'bucket' => env('PRIVATE_AWS_BUCKET'),
'url' => env('PRIVATE_AWS_URL'),
diff --git a/config/queue.php b/config/queue.php
index 14ced35aaa..fa30e82270 100644
--- a/config/queue.php
+++ b/config/queue.php
@@ -59,6 +59,7 @@ return [
'driver' => 'sqs',
'key' => env('AWS_ACCESS_KEY_ID'),
'secret' => env('AWS_SECRET_ACCESS_KEY'),
+ 'token' => env('AWS_SESSION_TOKEN'),
'prefix' => env('SQS_PREFIX', 'https://sqs.us-east-1.amazonaws.com/your-account-id'),
'queue' => env('SQS_QUEUE', 'default'),
'suffix' => env('SQS_SUFFIX'),
diff --git a/config/services.php b/config/services.php
index ddc1d01536..3a960ec8be 100644
--- a/config/services.php
+++ b/config/services.php
@@ -37,6 +37,7 @@ return [
'ses' => [
'key' => env('AWS_ACCESS_KEY_ID'),
'secret' => env('AWS_SECRET_ACCESS_KEY'),
+ 'token' => env('AWS_SESSION_TOKEN'),
'region' => env('AWS_DEFAULT_REGION', 'us-east-1'),
],