Skip to content

Commit

Permalink
Modified Spot ITN message (#762)
Browse files Browse the repository at this point in the history
* Modified Spot ITN message

* modified as per suggestion
  • Loading branch information
LikithaVemulapalli authored Jan 27, 2023
1 parent 300530b commit 368ae52
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/monitor/sqsevent/spot-itn-event.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ import (
"id": "1e5527d7-bb36-4607-3370-4164db56a40e",
"detail-type": "EC2 Spot Instance Interruption Warning",
"source": "aws.ec2",
"account": "123456789012",
"account": "<account_number>",
"time": "1970-01-01T00:00:00Z",
"region": "us-east-1",
"resources": [
Expand Down Expand Up @@ -69,7 +69,7 @@ func (m SQSMonitor) spotITNTerminationToInterruptionEvent(event *EventBridgeEven
IsManaged: nodeInfo.IsManaged,
InstanceID: spotInterruptionDetail.InstanceID,
ProviderID: nodeInfo.ProviderID,
Description: fmt.Sprintf("Spot Interruption event received. Instance %s will be interrupted at %s \n", spotInterruptionDetail.InstanceID, event.getTime()),
Description: fmt.Sprintf("Spot Interruption notice for instance %s was sent at %s \n", spotInterruptionDetail.InstanceID, event.getTime()),
}
interruptionEvent.PostDrainTask = func(interruptionEvent monitor.InterruptionEvent, n node.Node) error {
errs := m.deleteMessages([]*sqs.Message{message})
Expand Down

0 comments on commit 368ae52

Please sign in to comment.