@@ -16,9 +16,9 @@ type config struct {
1616 S3Endpoint string
1717 S3Bucket string
1818 S3Region string
19- S3ID string
20- S3Secret string
21- S3Token string
19+ AccessKeyID string
20+ SecretAccessKey string
21+ SessionToken string
2222 types.RayCollectorConfig
2323}
2424
@@ -32,9 +32,9 @@ func getS3BucketWithDefault() string {
3232
3333func (c * config ) complete (rcc * types.RayCollectorConfig , jd map [string ]interface {}) {
3434 c .RayCollectorConfig = * rcc
35- c .S3ID = os .Getenv ("AWS_S3ID " )
36- c .S3Secret = os .Getenv ("AWS_S3SECRET " )
37- c .S3Token = os .Getenv ("AWS_S3TOKEN " )
35+ c .AccessKeyID = os .Getenv ("AWS_ACCESS_KEY_ID " )
36+ c .SecretAccessKey = os .Getenv ("AWS_SECRET_ACCESS_KEY " )
37+ c .SessionToken = os .Getenv ("AWS_SESSION_TOKEN " )
3838 c .S3Bucket = getS3BucketWithDefault ()
3939 if len (jd ) == 0 {
4040 c .S3Endpoint = os .Getenv ("S3_ENDPOINT" )
@@ -68,10 +68,10 @@ func (c *config) completeHSConfig(rcc *types.RayHistoryServerConfig, jd map[stri
6868 c .RayCollectorConfig = types.RayCollectorConfig {
6969 RootDir : rcc .RootDir ,
7070 }
71- c .S3ID = os .Getenv ("AWS_S3ID " )
72- c .S3Secret = os .Getenv ("AWS_S3SECRET " )
73- c .S3Token = os .Getenv ("AWS_S3TOKEN " )
74- c .S3Bucket = getS3BucketWithDefault () // Use default if S3_BUCKET not set
71+ c .AccessKeyID = os .Getenv ("AWS_ACCESS_KEY_ID " )
72+ c .SecretAccessKey = os .Getenv ("AWS_SECRET_ACCESS_KEY " )
73+ c .SessionToken = os .Getenv ("AWS_SESSION_TOKEN " )
74+ c .S3Bucket = getS3BucketWithDefault ()
7575 if len (jd ) == 0 {
7676 c .S3Endpoint = os .Getenv ("S3_ENDPOINT" )
7777 c .S3Region = os .Getenv ("S3_REGION" )
0 commit comments