github.com/khulnasoft-lab/defsec@v1.0.5-0.20230827010352-5e9f46893d95/avd_docs/aws/documentdb/AVD-AWS-0020/CloudFormation.md (about) 1 2 Enable export logs 3 4 ```yaml--- 5 Resources: 6 GoodExample: 7 Type: "AWS::DocDB::DBCluster" 8 Properties: 9 BackupRetentionPeriod : 8 10 DBClusterIdentifier : "sample-cluster" 11 DBClusterParameterGroupName : "default.docdb3.6" 12 KmsKeyId : "your-kms-key-id" 13 EnableCloudwatchLogsExports: 14 - audit 15 - profiler 16 InstanceInstanceExample: 17 Type: "AWS::DocDB::DBInstance" 18 Properties: 19 AutoMinorVersionUpgrade: true 20 AvailabilityZone: "us-east-1c" 21 DBClusterIdentifier: "sample-cluster" 22 DBInstanceClass: "db.r5.large" 23 DBInstanceIdentifier: "sample-cluster-instance-0" 24 PreferredMaintenanceWindow: "sat:06:54-sat:07:24" 25 26 ``` 27 28