The D3 visualization would be an HTML document hosted on a web server.
You will use the AWS SDK to get the csv file from the S3 bucket and so you need to have an AWS S3 bucket key and secret but I won’t cover that in this post.
The key point of this post is to highlight that the bucket.getObject function data is read into D3 using d3.csv.parse(data.Body.toString());
Another note is that d3.csv.parse is for D3 version 3. Older versions use d3.csvParse.
Once implemented, whenever the webpage is refreshed it retrieves latest csv file from the S3 bucket and the D3 visualization is updated.