require("dotenv").config();
const AWS = require("aws-sdk");
const athena = new AWS.Athena({
accessKeyId: process.env.ACCESS_KEY,
secretAccessKey: process.env.SECRET_KEY,
region: process.env.REGION,
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let afghanistan = true; | |
let iceland = true; | |
let argentina = true; | |
let argentina2 = true | |
let russia = true; | |
let australia = true; | |
let usa = true; | |
let egypt = true; | |
let pakistan = true; | |
let india = true; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const AWS = require('aws-sdk'); | |
const s3 = new AWS.S3(); | |
s3.listBuckets(function(err, data) { | |
if (err) console.log(err, err.stack); | |
let bucketData = data.Buckets; | |
let bucketLength = data.Buckets.length; | |
for (let i = 0; i < bucketLength; i++) { | |
var params = { |