diff options
| author | Chris Lu <chrislusf@users.noreply.github.com> | 2025-07-23 02:05:26 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-07-23 02:05:26 -0700 |
| commit | e3d3c495abe9062755a7ee29b78a4f0e8dbde855 (patch) | |
| tree | 43242245ce27a94e32ea7b9ee58ef01499162a9b /weed/command | |
| parent | d5085cd1f768e1f0e595863e8ffcccccd619dcc3 (diff) | |
| download | seaweedfs-e3d3c495abe9062755a7ee29b78a4f0e8dbde855.tar.xz seaweedfs-e3d3c495abe9062755a7ee29b78a4f0e8dbde855.zip | |
S3 API: simpler way to start s3 with credentials (#7030)
* simpler way to start s3 with credentials
* AWS_ACCESS_KEY_ID=access_key AWS_SECRET_ACCESS_KEY=secret_key weed s3
* last adding credentials from env variables
* Update weed/s3api/auth_credentials.go
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
* simplify
* adjust doc
---------
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
Diffstat (limited to 'weed/command')
| -rw-r--r-- | weed/command/s3.go | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/weed/command/s3.go b/weed/command/s3.go index 25b75e9da..8dcb681b9 100644 --- a/weed/command/s3.go +++ b/weed/command/s3.go @@ -160,6 +160,14 @@ var cmdS3 = &Command{ ] } + Alternatively, you can use environment variables to supplement admin credentials: + + AWS_ACCESS_KEY_ID=your_access_key AWS_SECRET_ACCESS_KEY=your_secret_key weed s3 + + This will add admin credentials from environment variables to any existing + configuration. Environment variables are added after loading file/filer + configurations and are skipped if the same access key already exists. + `, } |
