-
Notifications
You must be signed in to change notification settings - Fork 4.5k
(aws_docdb): support audit logging #17478
Copy link
Copy link
Closed
Labels
@aws-cdk/aws-docdbRelated to Amazon DocumentDBRelated to Amazon DocumentDBeffort/mediumMedium work item – several days of effortMedium work item – several days of effortfeature-requestA feature should be added or improved.A feature should be added or improved.feature/enhancementA new API to make things easier or more intuitive. A catch-all for general feature requests.A new API to make things easier or more intuitive. A catch-all for general feature requests.in-progressThis issue is being actively worked on.This issue is being actively worked on.p2
Description
Description
In order to use data stores while remaining HIPAA compliant, we need to log an audit trail. DocDB has support for this https://docs.aws.amazon.com/documentdb/latest/developerguide/event-auditing.html#event-auditing-enabling-auditing but it doesn't look like there's any way to enable this via CDK. We had a similar problem with RDS and solved it using a CustomResource lambda. Is there something like this for DocDB?
Use Case
HIPAA compliance
Proposed Solution
new aws_docdb.DatabaseCluster(this, 'Name', { audit: true, ... });
When this is enabled, it would automatically create a customer Parameter Group to match the DB with audit_logs: 'enabled' and then it would trigger a custom resource that would run the equivalent of
aws docdb modify-db-cluster \
--db-cluster-identifier sample-cluster \
--cloudwatch-logs-export-configuration '{"EnableLogTypes":["audit"]}'
Other information
No response
Acknowledge
- I may be able to implement this feature request
- This feature might incur a breaking change
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
@aws-cdk/aws-docdbRelated to Amazon DocumentDBRelated to Amazon DocumentDBeffort/mediumMedium work item – several days of effortMedium work item – several days of effortfeature-requestA feature should be added or improved.A feature should be added or improved.feature/enhancementA new API to make things easier or more intuitive. A catch-all for general feature requests.A new API to make things easier or more intuitive. A catch-all for general feature requests.in-progressThis issue is being actively worked on.This issue is being actively worked on.p2