How to copy .csv file from Amazon S3 bucket?

0 votes

I was trying reading a .csv file from Amazon S3 bucket. This was the code i was using.

library(aws.s3) Sys.setenv("AWS_ACCESS_KEY_ID" = "Key src","AWS_SECRET_ACCESS_KEY" = "Key dest") df <-get_object("s3://dataset/Data.csv") obj <- rawToChar(df) con <- textConnection(obj) claim<- read.csv2(con)

Is there any other method for doing so?

Jul 6, 2018 in AWS by bug_seeker
• 15,310 points
324 views

1 answer to this question.

0 votes

Boto3 is the library to use for AWS interactions with python. The docs are not bad at all and the api is intuitive. The details of the process can be found in the link below. This was the most efficient method i knew! Hope this helps. . .

http://anthonyfox.io/2017/07/how-i-used-python-and-boto3-to-modify-csvs-in-aws-s3/

answered Jul 6, 2018 by Priyaj
• 56,160 points

Related Questions In AWS

–1 vote
1 answer

How to read a csv file stored in Amazon S3 using csv.DictReader

The code would be something like this: import ...READ MORE

answered Oct 25, 2018 in AWS by Archana
• 5,480 points
5,334 views
0 votes
2 answers

How to access files in S3 bucket from R?

You can take a look at the ...READ MORE

answered Aug 10, 2018 in AWS by Deepthi
• 300 points
608 views
0 votes
1 answer

How to upload a file to Amazon S3 without passing it my server?

This article pretty much explains the entire ...READ MORE

answered Aug 14, 2018 in AWS by Archana
• 4,090 points
51 views
+13 votes
2 answers
+1 vote
2 answers

AWS CloudWatch Logs in Docker

The awslogs works without using ECS. you need to configure ...READ MORE

answered Sep 6, 2018 in AWS by bug_seeker
• 15,310 points
277 views
+3 votes
5 answers

How to move files from amazon ec2 to s3 bucket using command line

First Option sm3cmd Use s3cmd s3cmd get s3://AWS_S3_Bucket/dir/file Take a ...READ MORE

answered Aug 29, 2018 in AWS by Priyaj
• 56,160 points
1,487 views
0 votes
1 answer