Amazon MQ broker logging disabled This product is not supported for your selected
Datadog site . (
).
Id: cloudformation-aws-mq-broker-logging-disabled
Provider: AWS
Platform: CloudFormation
Severity: Medium
Category: Observability
Learn More Description Amazon MQ brokers must have audit and general logging enabled so broker activity and security events are recorded for detection and investigation, and to support compliance and forensic requirements. In AWS CloudFormation, the AWS::AmazonMQ::Broker resource must include the Logs property with both Audit and General defined and set to true. Resources missing Logs, missing either Audit or General, or with either value set to false will be flagged.
Secure configuration example:
MyBroker :
Type : AWS::AmazonMQ::Broker
Properties :
BrokerName : my-broker
Logs :
Audit : true
General : true
Compliant Code Examples AWSTemplateFormatVersion : "2010-09-09"
Description : "Create a basic ActiveMQ broker"
Resources :
BasicBroker :
Type : "AWS::AmazonMQ::Broker"
Properties :
AutoMinorVersionUpgrade : "false"
BrokerName : MyBasicBroker
DeploymentMode : SINGLE_INSTANCE
EncryptionOptions :
UseAwsOwnedKey : true
EngineType : ActiveMQ
EngineVersion : "5.15.0"
HostInstanceType : mq.t2.micro
PubliclyAccessible : false
Users :
-
ConsoleAccess : "true"
Groups :
- MyGroup
Password :
Ref : "BrokerPassword"
Username :
Ref : "BrokerUsername"
Logs :
General : true
Audit : true
Non-Compliant Code Examples AWSTemplateFormatVersion : "2010-09-09"
Description : "Create a basic ActiveMQ broker"
Resources :
BasicBroker3 :
Type : "AWS::AmazonMQ::Broker"
Properties :
BrokerName : MyBasicBroker
DeploymentMode : SINGLE_INSTANCE
EngineType : ActiveMQ
EngineVersion : "5.15.0"
HostInstanceType : mq.t2.micro
PubliclyAccessible : false
Users :
-
ConsoleAccess : "true"
Groups :
- MyGroup
Password :
Ref : "BrokerPassword"
Username :
Ref : "BrokerUsername"
Logs :
General : true
BasicBroker4 :
Type : "AWS::AmazonMQ::Broker"
Properties :
BrokerName : MyBasicBroker
DeploymentMode : SINGLE_INSTANCE
EngineType : ActiveMQ
EngineVersion : "5.15.0"
HostInstanceType : mq.t2.micro
PubliclyAccessible : false
Users :
-
ConsoleAccess : "true"
Groups :
- MyGroup
Password :
Ref : "BrokerPassword"
Username :
Ref : "BrokerUsername"
Logs :
Audit : true
BasicBroker5 :
Type : "AWS::AmazonMQ::Broker"
Properties :
BrokerName : MyBasicBroker
DeploymentMode : SINGLE_INSTANCE
EngineType : ActiveMQ
EngineVersion : "5.15.0"
HostInstanceType : mq.t2.micro
PubliclyAccessible : false
Users :
-
ConsoleAccess : "true"
Groups :
- MyGroup
Password :
Ref : "BrokerPassword"
Username :
Ref : "BrokerUsername"
Logs :
General : false
Audit : true
BasicBroker6 :
Type : "AWS::AmazonMQ::Broker"
Properties :
BrokerName : MyBasicBroker
DeploymentMode : SINGLE_INSTANCE
EngineType : ActiveMQ
EngineVersion : "5.15.0"
HostInstanceType : mq.t2.micro
PubliclyAccessible : false
Users :
-
ConsoleAccess : "true"
Groups :
- MyGroup
Password :
Ref : "BrokerPassword"
Username :
Ref : "BrokerUsername"
Logs :
Audit : false
General : true
BasicBroker7 :
Type : "AWS::AmazonMQ::Broker"
Properties :
BrokerName : MyBasicBroker
DeploymentMode : SINGLE_INSTANCE
EngineType : ActiveMQ
EngineVersion : "5.15.0"
HostInstanceType : mq.t2.micro
PubliclyAccessible : false
Users :
-
ConsoleAccess : "true"
Groups :
- MyGroup
Password :
Ref : "BrokerPassword"
Username :
Ref : "BrokerUsername"