From 8687fb5193c2de91a8cd4b3c3a9e4eb3ab17cdc5 Mon Sep 17 00:00:00 2001 From: Pontus Freyhult Date: Fri, 1 Sep 2023 15:56:25 +0200 Subject: [PATCH] Credentials are access key, secret key, access token --- helpers/helpers.go | 2 +- upload/upload.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/helpers/helpers.go b/helpers/helpers.go index adf20752..dc74867d 100644 --- a/helpers/helpers.go +++ b/helpers/helpers.go @@ -377,7 +377,7 @@ func ListFiles(config Config, prefix string) (result *s3.ListObjectsV2Output, er // The region for the backend is always the specified one // and not present in the configuration from auth - hardcoded Region: aws.String("us-west-2"), - Credentials: credentials.NewStaticCredentials(config.AccessKey, config.AccessKey, config.AccessToken), + Credentials: credentials.NewStaticCredentials(config.AccessKey, config.SecretKey, config.AccessToken), Endpoint: aws.String(config.HostBase), DisableSSL: aws.Bool(!config.UseHTTPS), S3ForcePathStyle: aws.Bool(true), diff --git a/upload/upload.go b/upload/upload.go index 88ec1e5a..6ad249a6 100644 --- a/upload/upload.go +++ b/upload/upload.go @@ -102,7 +102,7 @@ func uploadFiles(files, outFiles []string, targetDir string, config *helpers.Con // The region for the backend is always the specified one // and not present in the configuration from auth - hardcoded Region: aws.String("us-west-2"), - Credentials: credentials.NewStaticCredentials(config.AccessKey, config.AccessKey, config.AccessToken), + Credentials: credentials.NewStaticCredentials(config.AccessKey, config.SecretKey, config.AccessToken), Endpoint: aws.String(config.HostBase), DisableSSL: aws.Bool(!config.UseHTTPS), S3ForcePathStyle: aws.Bool(true),