github.com/khulnasoft-lab/defsec@v1.0.5-0.20230827010352-5e9f46893d95/avd_docs/aws/elasticsearch/AVD-AWS-0042/CloudFormation.md (about) 1 2 Enable logging for ElasticSearch domains 3 4 ```yaml--- 5 Resources: 6 GoodExample: 7 Type: AWS::Elasticsearch::Domain 8 Properties: 9 DomainName: 'test' 10 ElasticsearchVersion: '7.10' 11 EncryptionAtRestOptions: 12 Enabled: true 13 KmsKeyId: alias/kmskey 14 LogPublishingOptions: 15 AUDIT_LOGS: 16 Enabled: true 17 ElasticsearchClusterConfig: 18 DedicatedMasterEnabled: true 19 InstanceCount: '2' 20 ZoneAwarenessEnabled: true 21 InstanceType: 'm3.medium.elasticsearch' 22 DedicatedMasterType: 'm3.medium.elasticsearch' 23 DedicatedMasterCount: '3' 24 EBSOptions: 25 EBSEnabled: true 26 Iops: '0' 27 VolumeSize: '20' 28 VolumeType: 'gp2' 29 30 ``` 31 32