Amazon EventBridge 사용 설정
S3 콘솔, AWS Command Line Interface(AWS CLI) 또는 Amazon S3 REST API를 사용하여 Amazon EventBridge를 사용 설정할 수 있습니다.
S3 콘솔에서 EventBridge 이벤트 전송 사용 설정
AWS Management Console에 로그인한 후 https://console.aws.amazon.com/s3/
에서 Amazon S3 콘솔을 엽니다. -
버킷(Buckets) 목록에서 이벤트를 사용 설정하려는 버킷의 이름을 선택합니다.
-
[속성(Properties)]을 선택합니다.
-
이벤트 알림(Event Notifications) 섹션으로 이동하고 Amazon EventBridge 하위 섹션을 찾습니다. 편집을 선택합니다.
-
이 버킷의 모든 이벤트에 대해 Amazon EventBridge에 알림 보내기(Send notifications to Amazon EventBridge for all events in this bucket)에서 설정(On)을 선택합니다.
참고
EventBridge를 사용 설정한 후에는 변경 사항이 적용되는 데 5분 정도 걸립니다.
다음 예에서는 Amazon EventBridge가 사용 설정된 버킷 DOC-EXAMPLE-BUCKET1
에 대한 버킷 알림 구성을 생성합니다.
aws s3api put-bucket-notification-configuration --bucket
DOC-EXAMPLE-BUCKET1
--notification-configuration='{ "EventBridgeConfiguration": {} }'
Amazon S3 REST API를 호출하여 프로그래밍 방식으로 버킷에서 Amazon EventBridge를 사용 설정할 수 있습니다. 자세한 내용은 Amazon Simple Storage Service API 참조의 PutBucketNotificationConfiguration을 참조하십시오.
다음 예에서는 Amazon EventBridge가 사용 설정된 버킷 알림 구성을 생성하는 데 사용된 XML을 보여줍니다.
<NotificationConfiguration xmlns="http://s3.amazonaws.com/doc/2006-03-01/"> <EventBridgeConfiguration> </EventBridgeConfiguration> </NotificationConfiguration>
EventBridge 규칙 생성
사용 설정되면 특정 작업에 대한 Amazon EventBridge 규칙을 생성할 수 있습니다. 예를 들어 객체가 생성될 때 이메일 알림을 보낼 수 있습니다. 전체 자습서는 Amazon EventBridge 사용 설명서의 자습서: Amazon S3 객체가 생성될 때 알림 보내기를 참조하십시오.