---
title: >-
  Bedrock model invocation logging should be enabled and stored in
  restricted-access S3 buckets
description: Datadog, the leading service for cloud-scale monitoring.
breadcrumbs: >-
  Docs > Datadog Security > OOTB Rules > Bedrock model invocation logging should
  be enabled and stored in restricted-access S3 buckets
---

> For the complete documentation index, see [llms.txt](https://docs.datadoghq.com/llms.txt).

# Bedrock model invocation logging should be enabled and stored in restricted-access S3 buckets
 
## Description{% #description %}

Enable Amazon Bedrock model invocation logging to monitor and audit model usage for security, compliance, and operational purposes. Ensure that logs are not stored in publicly accessible S3 buckets to prevent unauthorized access to sensitive model invocation data. The rule evaluates every account and Region, so a Region with logging disabled fails even if Bedrock is not used there. A destination S3 bucket must be collected by Datadog and not publicly accessible, so a bucket in an account that is not integrated fails. A bucket name passes only when every collected row for that name in the same partition is not publicly accessible. A same-name bucket in another partition is a different bucket. A row that does not identify its partition stays in scope, so a contradictory copy still fails. A blank or malformed S3 bucket name fails even when another destination is valid, and a blank CloudWatch log group name does not count as a destination. At least one data type (text, image, embedding, or video) must be enabled, and a CloudWatch Logs destination is not checked for a role ARN.

## Remediation{% #remediation %}

Configure Bedrock model invocation logging with at least one data type enabled (text, image, embedding, or video) and ensure the destination is either CloudWatch Logs or a non-public S3 bucket. For detailed configuration steps, refer to the [Monitor model invocation logging in Amazon Bedrock](https://docs.aws.amazon.com/bedrock/latest/userguide/model-invocation-logging.html) documentation.

## References{% #references %}

- [Monitor model invocation logging in Amazon Bedrock](https://docs.aws.amazon.com/bedrock/latest/userguide/model-invocation-logging.html)
- [CIS Amazon Web Services Benchmarks](https://www.cisecurity.org/benchmark/amazon_web_services)
