diff --git a/src/Updater/S3Provider.php b/src/Updater/S3Provider.php index 1a013e7..346abdc 100644 --- a/src/Updater/S3Provider.php +++ b/src/Updater/S3Provider.php @@ -10,8 +10,22 @@ public function __construct(protected array $config) { } - public function providedEnvironmentVariables(): array + public function environmentVariables(): array { - return []; + return [ + 'AWS_ACCESS_KEY_ID' => $this->config['key'], + 'AWS_SECRET_ACCESS_KEY' => $this->config['secret'], + ]; + } + + public function builderOptions(): array + { + return [ + 'provider' => 's3', + 'endpoint' => $this->config['endpoint'], + 'region' => $this->config['region'], + 'bucket' => $this->config['bucket'], + 'path' => $this->config['path'], + ]; } }