mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2025-10-08 01:04:22 +08:00
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>
This commit is contained in:
@@ -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.
|
||||
|
||||
`,
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user