Skip to content

Commit 706fd91

Browse files
authored
Update S3Provider.php
Update S3 to implement correct `Updater` interface I wasn't sure if the env vars were added to the binary so I migrated from using AWS keys / secret to a profile
1 parent 412ff4a commit 706fd91

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_PROFILE' => $this->config['profile'],
17+
];
18+
}
19+
20+
public function builderOptions(): array
21+
{
22+
return [
23+
'provider' => 's3',
24+
'endpoint' => $this->config['endpoint'],
25+
'region' => $this->config['region'],
26+
'bucket' => $this->config['bucket'],
27+
'path' => $this->config['path'],
28+
'acl' => $this->config['acl']
29+
];
1630
}
1731
}

0 commit comments

Comments
 (0)