File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -19,10 +19,10 @@ exports.handler = async (event, context) => {
1919 const stoppedReason = event . detail . stoppedReason ;
2020
2121 if ( lastStatus === 'STOPPED' && stopCode ) {
22- console . error ( `[acct: ${ account } ] task ${ service } in ${ region } STOPPED unexpectedly. Reason: ${ stoppedReason } .` ) ;
22+ console . error ( `[acct: ${ account } ] task ${ service } in ${ region } STOPPED unexpectedly with code ${ stopCode } . Reason: ${ stoppedReason } .` ) ;
2323
2424 await webhook . send ( {
25- text : `_[acct: ${ account } ]_ task *${ service } * in ${ region } *STOPPED* unexpectedly.\n\t*Reason:* ${ stoppedReason } .`
25+ text : `_[acct: ${ account } ]_ task *${ service } * in ${ region } *STOPPED* unexpectedly with code ${ stopCode } .\n\t*Reason:* ${ stoppedReason } .`
2626 } ) ;
2727 } else {
2828 console . log ( `[acct: ${ account } ] task ${ service } in ${ region } is ${ lastStatus } .` ) ;
Original file line number Diff line number Diff line change 11{
22 "name" : " ecs-watchdog" ,
3- "version" : " 1.1.0 " ,
3+ "version" : " 1.1.1 " ,
44 "description" : " Post a Slack notification to a channel when an AWS ECS task goes into an unexpected `STOPPED` status" ,
55 "repository" : {
66 "type" : " git"
You can’t perform that action at this time.
0 commit comments