briareus
Version:
Briareus assists with Feature Branch deploys to ECS
17 lines (12 loc) • 319 B
JavaScript
const AWS = require('aws-sdk');
const _ = require('lodash');
module.exports = function (payload, cb) {
const sts = new AWS.STS();
sts.getCallerIdentity({}, (err, data) => {
if (err) return cb(err);
cb(null, [
{ op: 'add', path: '/awsAccountId', value: data.Account },
]);
});
}