Skip to content

Commit

Permalink
removing left over
Browse files Browse the repository at this point in the history
Signed-off-by: Thiago Pagotto <pagottoo@gmail.com>
  • Loading branch information
pagottoo committed Jul 21, 2022
1 parent d2f91c1 commit 8aa96b6
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions internal/aws/aws.go
Original file line number Diff line number Diff line change
Expand Up @@ -372,10 +372,6 @@ func CreateBucket(dryRun bool, name string) {
}

func UploadFile(bucket, key, fileName string) error {
// The session the S3 Uploader will use
//sess := session.Must(session.NewSession())

// Create an uploader with the session and default options
uploader := s3manager.NewUploader(GetAWSSession())

f, err := os.Open(fileName)
Expand All @@ -397,11 +393,6 @@ func UploadFile(bucket, key, fileName string) error {
}

func DownloadBucket(bucket string, destFolder string) error {
// Create a file to write the S3 Object contents to.
// f, err := os.Create(filename)
// if err != nil {
// return fmt.Errorf("failed to create file %q, %v", filename, err)
// }
s3Client := s3.New(GetAWSSession())
downloader := s3manager.NewDownloader(GetAWSSession())

Expand Down

0 comments on commit 8aa96b6

Please sign in to comment.