Skip to content

Commit

Permalink
auto resolve S3 creds
Browse files Browse the repository at this point in the history
  • Loading branch information
iskakaushik committed Oct 27, 2023
1 parent a197e2f commit 3e5c9e7
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions flow/connectors/utils/aws.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import (
"strings"

"github.com/aws/aws-sdk-go/aws"
"github.com/aws/aws-sdk-go/aws/credentials"
"github.com/aws/aws-sdk-go/aws/session"
"github.com/aws/aws-sdk-go/service/s3"
)
Expand Down Expand Up @@ -105,8 +104,6 @@ func CreateS3Client(s3Creds S3PeerCredentials) (*s3.S3, error) {
sess := session.Must(session.NewSession(&aws.Config{
Region: aws.String(awsSecrets.Region),
Endpoint: aws.String(awsSecrets.Endpoint),
Credentials: credentials.NewStaticCredentials(
awsSecrets.AccessKeyID, awsSecrets.SecretAccessKey, ""),
}))

s3svc := s3.New(sess)
Expand Down

0 comments on commit 3e5c9e7

Please sign in to comment.