1 Answer
- Newest
- Most votes
- Most comments
0
I found this was caused by not waiting the sendCommand.
This works fine.
//Modified these lines
// await SSM.sendCommand(params, function(err, data){
// if(err){
// console.log("error", err);
// }else{
// console.log("success", data);
// }
// });
//this works fine
const sendCommandResult = await SSM.sendCommand(params).promise();
console.log(sendCommandResult);
answered 3 years ago
Relevant content
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated 3 years ago
- AWS OFFICIALUpdated a year ago