How to use the CodeCommit function from aws-sdk

Find comprehensive JavaScript aws-sdk.CodeCommit code examples handpicked from public code repositorys.

19
20
21
22
23
24
25
26
27
28
29
30
// snippet-sourcedate:[2016-03-07]
// snippet-sourceauthor:[AWS]
// snippet-start:[codecommit.nodejs.MyCodeCommitFunction_js.complete]


var aws = require('aws-sdk');
var codecommit = new aws.CodeCommit({ apiVersion: '2015-04-13' });


exports.handler = function(event, context) {
    
    //Log the updated references from the event
fork icon0
star icon2
watch icon0

53
54
55
56
57
58
59
60
61
for(let single_client of credentialsList){

    //console.log(single_client, getRegionsRes);

    let codecommitList = getRegionsRes.map(ele => {
        return new AWS.CodeCommit({ region: ele['regionid'], accessKeyId: single_client['accesstoken'], secretAccessKey: single_client['secretekey'] })
    });

    //console.log(codecommitList);
fork icon0
star icon0
watch icon0

+ 2 other calls in file