

# 인벤토리 완료에 대한 Amazon S3 이벤트 알림 설정
<a name="storage-inventory-notification"></a>

매니페스트 체크섬 파일이 생성될 때 인벤토리 목록이 대상 버킷에 추가되었음을 알려 주는 통보를 수신하도록 Amazon S3 이벤트 알림을 설정할 수 있습니다. 매니페스트는 대상 위치에 있는 모든 인벤토리 목록의 최신 목록입니다.

Amazon S3는 Amazon Simple Notification Service(Amazon SNS) 주제, Amazon Simple Queue Service(Amazon SQS) 대기열 또는 AWS Lambda 함수에 이벤트를 게시할 수 있습니다. 자세한 내용은 [Amazon S3 이벤트 알림](EventNotifications.md) 섹션을 참조하세요.

다음의 알림 구성은 대상 버킷에 새롭게 추가된 모든 `manifest.checksum` 파일이 AWS Lambda `cloud-function-list-write`에 의해 처리되도록 구성합니다.

```
<NotificationConfiguration>
  <QueueConfiguration>
      <Id>1</Id>
      <Filter>
          <S3Key>
              <FilterRule>
                  <Name>prefix</Name>
                  <Value>{{destination-prefix}}/{{source-bucket}}</Value>
              </FilterRule>
              <FilterRule>
                  <Name>suffix</Name>
                  <Value>checksum</Value>
              </FilterRule>
          </S3Key>
     </Filter>
     <CloudFunction>arn:aws:lambda:{{us-west-2}}:{{222233334444}}:cloud-function-list-write</CloudFunction>
     <Event>s3:ObjectCreated:*</Event>
  </QueueConfiguration>
  </NotificationConfiguration>
```

자세한 내용은 *AWS Lambda 개발자 안내서*의 [Amazon S3에서 AWS Lambda 사용](https://docs.aws.amazon.com/lambda/latest/dg/with-s3.html)을 참조하세요.