What action should be taken to accomplish this?
Create an Amazon CloudWatch Events event for file restoration from Amazon S3 Glacier using the GlacierJobDescription API and send the event to an SNS topic the Administrator has subscribed to.
Create an AWS Lambda function that performs a HEAD request on the object being restored and checks the storage class of the object. Then send a notification to an SNS topic the Administrator has subscribed to when the storage class changes to STANDARD.
Enable an Amazon S3 event notification for the s3:ObjectCreated:Post event that sends a notification to an SNS topic the Administrator has subscribed to.
Enable S3 event notification for the s3:ObjectCreated:Completed event that sends a notification to an SNS topic the Administrator has subscribed to.
Explanations:
CloudWatch Events can be used for tracking S3 Glacier jobs, but the specific event for restoration completion would need to be based on the GlacierJobDescription API. However, S3 Glacier jobs don’t send direct SNS notifications.
Lambda can be used to monitor the object’s storage class but doesn’t directly tie into the restoration process or the event signaling when the object is accessible from Glacier.
The s3:ObjectCreatedevent is triggered when an object is uploaded to S3, not when a file is restored from Glacier. This does not cover the specific restoration process.
The s3:ObjectCreatedevent is triggered once an object restoration from S3 Glacier is complete and the object is available for access. This event can send a notification to an SNS topic, fulfilling the requirement.