cf.executeChangeSet(params, function (err, data) { if (err) { console.log(err, err.stack); // an error occurred callback(err); } console.log(data); callback(data); });
sdk.api.updateFunctionCode(params, function(err, data) { console.log("Lambda code update attempt finished."); if (err) { console.log("Error updating code. Params:", err); console.log("Input Parameters: ", params); console.log(err.stack); reject(err); } else { console.log("Updated function: " + functionName); resolve(data); } });
// action s3.getObject(params, function(err,data) { if(err) { console.log(err,err.stack); } else { console.log(data.Body.toString('utf-8')); } });
s3.createBucket(params, (err, data) => { if (err) console.log(err, err.stack); else { console.log(data); editBucketCORS(); } });
ddb.createTable(params, function(err, data) { if(err) { console.log("Error creating table: "+err, err.stack) } else { console.log("Table successfully created!!") } })
// action s3.putObject(params, function(err,data) { if(err) { console.log(err,err.stack); } else { console.log(data); } });
// action s3.deleteObject(params, function(err,data) { if(err) { console.log(err,err.stack); } else { console.log(data); } });
// action s3.listObjects(params, function(err,data) { if(err) { console.log(err,err.stack); } else { console.log(data); } });
apigateway.getIntegration(params, function(err, data) { if (err) console.log(err, err.stack); // an error occurred else console.log("INTEGRATION: ", data); // successful response });
lambda.getFunction(params, function(err, data) { if (err) console.log(err, err.stack); // an error occurred else console.log(data); // successful response });
cloudfront.createInvalidation(params, function(err, data) { if (err) console.log(err, err.stack); // an error occurred else console.log(data); // successful response });
cf.executeChangeSet(params, function (err, data) { if (err) { console.log(err, err.stack); // an error occurred callback(err); } console.log(data); callback(data); });
cloudfront.createInvalidation(params, function(err, data) { if (err) console.log(err, err.stack); // an error occurred else console.log(data); // successful response });