Enabling Object Lock for the S3 bucket that is delivering audit logs
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-28-2024 11:48 PM
Hello Community,
I am trying to enable Object Lock on the S3 bucket to which the audit log is delivered, but the following error occurs if Object Lock is enabled when the delivery settings are enabled.
> {"error_code":"PERMISSION_DENIED","message":"Failed to perform putObject operation on s3Bucket:<bucket-name> with deliveryPathPrefix:<prefix-name> with the IAM Role:<iam-roke-arn> provided. Please all required s3 actions as mentioned in API docs to role policy of your IAM Role."}
Enabling Object Lock after enabling the delivery settings will not cause an error, but will it affect the operation? The delivery appears to be going well.
Thank you!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-31-2024 11:50 AM
Hi @hiro12
Enabling Object Lock on an S3 bucket after configuring the delivery settings should not affect the ongoing delivery of audit logs. But I would say, it is better to understand the root cause of the error.
The error you encountered when enabling Object Lock before configuring the delivery settings is due to insufficient permissions for the IAM role to perform the necessary S3 actions.
To avoid this error, ensure that the IAM role used for log delivery has all the required S3 actions as mentioned in the API documentation. Once the delivery settings are enabled, you can then enable Object Lock without causing any issues. The delivery process should continue to function correctly as long as the necessary permissions are in place.
Thanks!

