Published
Edited
Jul 12, 2022
2 forks
5 stars
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
credentials = AWS.config.credentials =
new AWS.Credentials(localStorage["AWSaccessKeyId"], localStorage["AWSsecretAccessKey"])
Insert cell
region = AWS.config.region = 'us-west-1'
Insert cell
awsConfig = AWS.config.update({
accessKeyId: localStorage["AWSaccessKeyID"],
secretAccessKey: localStorage["AWSsecretAccessKey"],
region: region
});
Insert cell
Insert cell
s3 = {
// call credentials and region here to make sure those are set before creating the S3 object
credentials;
region;
return new AWS.S3({apiVersion: '2006-03-01'})
}
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
s3.getObject(objectParams)
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell

Purpose-built for displays of data

Observable is your go-to platform for exploring data and creating expressive data visualizations. Use reactive JavaScript notebooks for prototyping and a collaborative canvas for visual data exploration and dashboard creation.
Learn more