Skip to content

Commit 3a9f93b

Browse files
authored
Merge pull request #65 from lonnylot/patch-2
Update S3Provider.php
2 parents 4f80160 + 8a088d4 commit 3a9f93b

File tree

1 file changed

+16
-2
lines changed

1 file changed

+16
-2
lines changed

src/Updater/S3Provider.php

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,22 @@ public function __construct(protected array $config)
1010
{
1111
}
1212

13-
public function providedEnvironmentVariables(): array
13+
public function environmentVariables(): array
1414
{
15-
return [];
15+
return [
16+
'AWS_ACCESS_KEY_ID' => $this->config['key'],
17+
'AWS_SECRET_ACCESS_KEY' => $this->config['secret'],
18+
];
19+
}
20+
21+
public function builderOptions(): array
22+
{
23+
return [
24+
'provider' => 's3',
25+
'endpoint' => $this->config['endpoint'],
26+
'region' => $this->config['region'],
27+
'bucket' => $this->config['bucket'],
28+
'path' => $this->config['path'],
29+
];
1630
}
1731
}

0 commit comments

Comments
 (0)