diff --git a/flow/connectors/utils/aws.go b/flow/connectors/utils/aws.go index b8d7b3b21a..5e35828960 100644 --- a/flow/connectors/utils/aws.go +++ b/flow/connectors/utils/aws.go @@ -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" ) @@ -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)