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,510 points
958 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
• 57,700 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,600 points
31,210 views
+1 vote
1 answer
+15 votes
2 answers

Git management technique when there are multiple customers and need multiple customization?

Consider this - In 'extended' Git-Flow, (Git-Multi-Flow, ...READ MORE

answered Mar 26, 2018 in DevOps & Agile by DragonLord999
• 8,450 points
809 views
+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,510 points
819 views
+3 votes
5 answers

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

Hey, 3 ways you can do this: To ...READ MORE

answered Oct 9, 2018 in AWS by Omkar
• 69,030 points
13,511 views
0 votes
1 answer