Data events were recently enabled for cloudtrail which can show granular detils about modifications on DynamoDB or S3. this can greatly help when trying to audit data access and for security insights. the following terraform script demonstrates how to achieve this:
data "aws_dynamodb_table" "credential-store" {
name = "credential-store"
}
resource "aws_cloudwatch_log_group" "infra-audit-data-access" {
name = "infra-audit-data-access"