EventBridge 및 CloudTrail을 사용한 중단 가능한 용량 예약 모니터링
중단 가능한 용량 예약은 용량 변경 사항을 모니터링하고 이에 대응할 수 있도록 EventBridge 알림과 CloudTrail 이벤트를 전송합니다.
EventBridge 알림
EventBridge 알림은 두 가지 유형으로 제공됩니다. EventBridge 알림 설정 방법에 대한 자세한 내용은 Amazon EventBridge 규칙 생성을 참조하세요.
인스턴스 중단 경고
중단 가능한 예약에서 인스턴스를 실행 중인 경우, 인스턴스가 종료되기 2분 전에 해당 알림을 받게 됩니다.
{ "version": "0", "id": "12345678-1234-1234-1234-123456789012", "detail-type": "EC2 Interruptible Capacity Reservation Instance Interruption Warning", "source": "aws.ec2", "account": "[instance owner Account ID]", "time": "[Current time in yyyy-mm-ddThh:mm:ssZ]", "resources": "[instance arn]", "region": "[region]", "detail": { "instance-id": "[instance-id]", "instance-action": "terminate", "instance-termination-time": "yyyy-mm-ddThh:mm:ssZ", "azId": "[availability-zone-id]" } }
회수 완료
소스 용량 예약을 소유한 경우, 용량 회수가 완료되었을 때 해당 알림을 받게 됩니다.
{ "version": "0", "id": "12345678-1234-1234-1234-123456789012", "detail-type": "EC2 Capacity Reservation Interruptible Reclamation Complete", "source": "aws.ec2", "account": "[source Capacity Reservation Owner Account ID]", "time": "[Current time in yyyy-mm-ddThh:mm:ssZ]", "region": "us-east-1", "resources": ["source_cr_arn"], "detail": { "sourceCapacityReservationId": "string", "instanceType": "string", "availabilityZoneId": "string", "TotalInstanceCount": "current total count in the source", "ReclaimedInstanceCount": "count of instances added to the source", "targetInstanceCount": "number" } }
CloudTrail 이벤트
CloudTrail은 중단 가능한 용량 예약과 관련하여 다음 이벤트를 기록합니다.
InterruptibleCapacityReservationCreated- 중단 가능한 할당을 생성할 때InterruptibleCapacityReservationAllocationUpdated- 할당을 수정할 때InterruptibleCapacityReservationCancelled- 할당을 취소할 때CapacityReservationModified- 할당을 위해 소스 용량 예약을 수정할 때InterruptibleCapacityReservationInstancesTerminated- 회수 과정에서 인스턴스를 종료할 때