Skip to content

Commit

Permalink
Credentials are access key, secret key, access token
Browse files Browse the repository at this point in the history
  • Loading branch information
pontus committed Sep 1, 2023
1 parent 6bbc4e2 commit 8687fb5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion helpers/helpers.go
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down
2 changes: 1 addition & 1 deletion upload/upload.go
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down

0 comments on commit 8687fb5

Please sign in to comment.