EC2 인스턴스의 예약 이벤트 알림 사용자 지정
EC2 인스턴스의 예약 이벤트 알림 사용자 지정 (Customize scheduled event notifications for your EC2 instances)
예약 이벤트 알림을 사용자 지정해 이메일 알림에 태그를 포함시킬 수 있어요. 이렇게 하면 영향을 받는 리소스(인스턴스 또는 전용 호스트)를 식별하고 예정된 이벤트에 대한 작업의 우선순위를 정하기 쉬워져요.
이벤트 알림을 사용자 지정해 태그를 포함하면 다음을 포함하도록 선택할 수 있어요:
- 영향을 받는 리소스와 연결된 모든 태그
- 영향을 받는 리소스와 연결된 특정 태그만
예를 들어 모든 인스턴스에 application, costcenter, project, owner 태그를 할당했다고 가정해 봐요. 이벤트 알림에 모든 태그를 포함하도록 선택할 수 있어요. 또는 이벤트 알림에서 owner 및 project 태그만 보고 싶다면 해당 태그만 포함하도록 선택할 수 있어요.
포함할 태그를 선택하면 이벤트 알림에 리소스 ID(인스턴스 ID 또는 전용 호스트 ID)와 영향을 받는 리소스와 연결된 태그 키·값 쌍이 포함돼요.
작업 (Tasks)
- 이벤트 알림에 태그 포함
- 이벤트 알림에서 태그 제거
- 이벤트 알림에 포함될 태그 보기
이벤트 알림에 태그 포함 (Include tags in event notifications)
포함하도록 선택한 태그는 선택한 리전의 모든 리소스(인스턴스와 전용 호스트)에 적용돼요. 다른 리전의 이벤트 알림을 사용자 지정하려면 먼저 필요한 리전을 선택한 뒤 다음 단계를 수행하세요.
콘솔 (Console)
이벤트 알림에 태그 포함:
- Amazon EC2 콘솔(https://console.aws.amazon.com/ec2/)을 엽니다.
- 탐색 창에서 이벤트(Events)를 선택하세요.
- 작업(Actions), 이벤트 알림 관리(Manage event notifications)를 선택하세요.
- 이벤트 알림에 태그 포함(Include tags in event notifications)을 켜세요.
- 이벤트 알림에 포함할 태그에 따라 다음 중 하나를 수행하세요.
- 영향을 받는 인스턴스 또는 전용 호스트와 연결된 모든 태그를 포함하려면 모든 태그 포함(Include all tags)을 선택하세요.
- 포함할 태그를 선택하려면 포함할 태그 선택(Choose the tags to include)을 선택한 뒤 태그 키를 선택하거나 입력하세요.
- 저장(Save)을 선택하세요.
AWS CLI
이벤트 알림에 모든 태그 포함:
register-instance-event-notification-attributes 명령을 사용하고 IncludeAllTagsOfInstance 매개변수를 true로 설정하세요.
aws ec2 register-instance-event-notification-attributes \
--instance-tag-attribute "IncludeAllTagsOfInstance=true"
이벤트 알림에 특정 태그 포함:
register-instance-event-notification-attributes 명령을 사용하고 InstanceTagKeys 매개변수로 포함할 태그를 지정하세요.
aws ec2 register-instance-event-notification-attributes \
--instance-tag-attribute 'InstanceTagKeys=["tag_key_1", "tag_key_2", "tag_key_3"]'
PowerShell
이벤트 알림에 모든 태그 포함:
Register-EC2InstanceEventNotificationAttribute cmdlet을 사용하세요.
Register-EC2InstanceEventNotificationAttribute `
-InstanceTagAttribute_IncludeAllTagsOfInstance $true
이벤트 알림에 특정 태그 포함:
Register-EC2InstanceEventNotificationAttribute cmdlet을 사용하세요.
Register-EC2InstanceEventNotificationAttribute `
-InstanceTagAttribute_InstanceTagKey tag_key_1, tag_key_2, tag_key_3
이벤트 알림에서 태그 제거 (Remove tags from event notifications)
이벤트 알림에서 태그를 제거할 수 있어요.
콘솔 (Console)
이벤트 알림에서 태그 제거:
- Amazon EC2 콘솔(https://console.aws.amazon.com/ec2/)을 엽니다.
- 탐색 창에서 이벤트(Events)를 선택하세요.
- 작업(Actions), 이벤트 알림 관리(Manage event notifications)를 선택하세요.
- 이벤트 알림에서 모든 태그를 제거하려면 이벤트 알림에 태그 포함(Include tags in event notifications)을 끄세요.
- 이벤트 알림에서 특정 태그를 제거하려면 해당 태그 키의 X)를 선택하세요.
- 저장(Save)을 선택하세요.
AWS CLI
이벤트 알림에서 모든 태그 제거:
deregister-instance-event-notification-attributes 명령을 사용하고 IncludeAllTagsOfInstance 매개변수를 false로 설정하세요.
aws ec2 deregister-instance-event-notification-attributes \
--instance-tag-attribute "IncludeAllTagsOfInstance=false"
이벤트 알림에서 태그 제거:
deregister-instance-event-notification-attributes 명령을 사용하고 InstanceTagKeys 매개변수로 제거할 태그를 지정하세요.
aws ec2 deregister-instance-event-notification-attributes \
--instance-tag-attribute 'InstanceTagKeys=["tag_key_3"]'
PowerShell
이벤트 알림에서 모든 태그 제거:
Unregister-EC2InstanceEventNotificationAttribute cmdlet을 사용하세요.
Unregister-EC2InstanceEventNotificationAttribute `
-InstanceTagAttribute_IncludeAllTagsOfInstance $false
이벤트 알림에서 태그 제거:
Unregister-EC2InstanceEventNotificationAttribute cmdlet을 사용하세요.
Unregister-EC2InstanceEventNotificationAttribute `
-InstanceTagAttribute_InstanceTagKey tag_key_3
이벤트 알림에 포함될 태그 보기 (View the tags to be included in event notifications)
이벤트 알림에 포함될 태그를 볼 수 있어요.
콘솔 (Console)
이벤트 알림에 포함될 태그 보기:
- Amazon EC2 콘솔(https://console.aws.amazon.com/ec2/)을 엽니다.
- 탐색 창에서 이벤트(Events)를 선택하세요.
- 작업(Actions), 이벤트 알림 관리(Manage event notifications)를 선택하세요.
AWS CLI
이벤트 알림에 포함될 태그 보기:
describe-instance-event-notification-attributes 명령을 사용하세요.
aws ec2 describe-instance-event-notification-attributes
PowerShell
이벤트 알림에 포함될 태그 보기:
Get-EC2InstanceEventNotificationAttribute cmdlet을 사용하세요.
Get-EC2InstanceEventNotificationAttribute