Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
var inspect = require('eyes').inspector();
var awssum = require('awssum');
var amazon = awssum.load('amazon/amazon');
var Ec2 = awssum.load('amazon/ec2').Ec2;
var env = process.env;
var accessKeyId = process.env.ACCESS_KEY_ID;
var secretAccessKey = process.env.SECRET_ACCESS_KEY;
var awsAccountId = process.env.AWS_ACCOUNT_ID;
var ec2 = new Ec2({
'accessKeyId' : accessKeyId,
'secretAccessKey' : secretAccessKey,
// 'awsAccountId' : awsAccountId, // optional
'region' : amazon.US_EAST_1
});
console.log( 'Region :', ec2.region() );
console.log( 'EndPoint :', ec2.host() );
var fmt = require('fmt');
var awssum = require('awssum');
var amazon = awssum.load('amazon/amazon');
var Sts = awssum.load('amazon/sts').Sts;
var env = process.env;
var accessKeyId = env.ACCESS_KEY_ID;
var secretAccessKey = env.SECRET_ACCESS_KEY;
var awsAccountId = env.AWS_ACCOUNT_ID;
var sts = new Sts({
'accessKeyId' : accessKeyId,
'secretAccessKey' : secretAccessKey,
// 'awsAccountId' : awsAccountId, // optional
'region' : amazon.US_EAST_1
});
fmt.field('Region', sts.region() );
fmt.field('EndPoint', sts.host() );
var fmt = require('fmt');
var awssum = require('awssum');
var amazon = awssum.load('amazon/amazon');
var Sns = awssum.load('amazon/sns').Sns;
var env = process.env;
var accessKeyId = env.ACCESS_KEY_ID;
var secretAccessKey = env.SECRET_ACCESS_KEY;
var awsAccountId = env.AWS_ACCOUNT_ID;
var sns = new Sns({
'accessKeyId' : accessKeyId,
'secretAccessKey' : secretAccessKey,
// 'awsAccountId' : awsAccountId, // optional
'region' : amazon.US_EAST_1
});
fmt.field('Region', sns.region() );
fmt.field('EndPoint', sns.host() );
fmt.field('AccessKeyId', sns.accessKeyId().substr(0, 3) + '...' );
var fmt = require('fmt');
var awssum = require('awssum');
var amazon = awssum.load('amazon/amazon');
var Sns = awssum.load('amazon/sns').Sns;
var env = process.env;
var accessKeyId = env.ACCESS_KEY_ID;
var secretAccessKey = env.SECRET_ACCESS_KEY;
var awsAccountId = env.AWS_ACCOUNT_ID;
var sns = new Sns({
'accessKeyId' : accessKeyId,
'secretAccessKey' : secretAccessKey,
// 'awsAccountId' : awsAccountId, // optional
'region' : amazon.US_EAST_1
});
fmt.field('Region', sns.region() );
fmt.field('EndPoint', sns.host() );
fmt.field('AccessKeyId', sns.accessKeyId().substr(0, 3) + '...' );
var fmt = require('fmt');
var awssum = require('awssum');
var amazon = awssum.load('amazon/amazon');
var Sns = awssum.load('amazon/sns').Sns;
var env = process.env;
var accessKeyId = env.ACCESS_KEY_ID;
var secretAccessKey = env.SECRET_ACCESS_KEY;
var awsAccountId = env.AWS_ACCOUNT_ID;
var sns = new Sns({
'accessKeyId' : accessKeyId,
'secretAccessKey' : secretAccessKey,
// 'awsAccountId' : awsAccountId, // optional
'region' : amazon.US_EAST_1
});
fmt.field('Region', sns.region() );
fmt.field('EndPoint', sns.host() );
fmt.field('AccessKeyId', sns.accessKeyId().substr(0, 3) + '...' );
var fmt = require('fmt');
var awssum = require('awssum');
var amazon = awssum.load('amazon/amazon');
var Sns = awssum.load('amazon/sns').Sns;
var env = process.env;
var accessKeyId = env.ACCESS_KEY_ID;
var secretAccessKey = env.SECRET_ACCESS_KEY;
var awsAccountId = env.AWS_ACCOUNT_ID;
var sns = new Sns({
'accessKeyId' : accessKeyId,
'secretAccessKey' : secretAccessKey,
// 'awsAccountId' : awsAccountId, // optional
'region' : amazon.US_EAST_1
});
fmt.field('Region', sns.region() );
fmt.field('EndPoint', sns.host() );
fmt.field('AccessKeyId', sns.accessKeyId().substr(0, 3) + '...' );
var fmt = require('fmt');
var awssum = require('awssum');
var amazon = awssum.load('amazon/amazon');
var Sns = awssum.load('amazon/sns').Sns;
var env = process.env;
var accessKeyId = env.ACCESS_KEY_ID;
var secretAccessKey = env.SECRET_ACCESS_KEY;
var awsAccountId = env.AWS_ACCOUNT_ID;
var sns = new Sns({
'accessKeyId' : accessKeyId,
'secretAccessKey' : secretAccessKey,
// 'awsAccountId' : awsAccountId, // optional
'region' : amazon.US_EAST_1
});
fmt.field('Region', sns.region() );
fmt.field('EndPoint', sns.host() );
fmt.field('AccessKeyId', sns.accessKeyId().substr(0, 3) + '...' );
var inspect = require('eyes').inspector({ maxLength : 65536 });
var commander = require('commander');
var awssum = require('awssum');
var oauth = awssum.load('oauth');
var Twitter = awssum.load('twitter/twitter').Twitter;
var env = process.env;
var consumerKey = process.env.TWITTER_CONSUMER_KEY;
var consumerSecret = process.env.TWITTER_CONSUMER_SECRET;
var token = process.env.TWITTER_TOKEN;
var tokenSecret = process.env.TWITTER_TOKEN_SECRET;
// don't need the verifier
var twitter = new Twitter({
'consumerKey' : consumerKey,
'consumerSecret' : consumerSecret
});
twitter.setToken(token);
twitter.setTokenSecret(tokenSecret);
var inspect = require('eyes').inspector({ maxLength : 65536 });
var commander = require('commander');
var awssum = require('awssum');
var oauth = awssum.load('oauth');
var Twitter = awssum.load('twitter/twitter').Twitter;
var env = process.env;
var consumerKey = process.env.TWITTER_CONSUMER_KEY;
var consumerSecret = process.env.TWITTER_CONSUMER_SECRET;
var token = process.env.TWITTER_TOKEN;
var tokenSecret = process.env.TWITTER_TOKEN_SECRET;
// don't need the verifier
var twitter = new Twitter({
'consumerKey' : consumerKey,
'consumerSecret' : consumerSecret
});
twitter.setToken(token);
twitter.setTokenSecret(tokenSecret);
var inspect = require('eyes').inspector({ maxLength : 65536 });
var commander = require('commander');
var awssum = require('awssum');
var oauth = awssum.load('oauth');
var Twitter = awssum.load('twitter/twitter').Twitter;
var env = process.env;
var consumerKey = process.env.TWITTER_CONSUMER_KEY;
var consumerSecret = process.env.TWITTER_CONSUMER_SECRET;
var token = process.env.TWITTER_TOKEN;
var tokenSecret = process.env.TWITTER_TOKEN_SECRET;
// don't need the verifier
var twitter = new Twitter({
'consumerKey' : consumerKey,
'consumerSecret' : consumerSecret
});
twitter.setToken(token);
twitter.setTokenSecret(tokenSecret);