Monitoring Disabled EC2 instances High

Monitoring is not enabled for EC2 instances. Ensure to enable Monitoring.

Detector ID
cloudformation/checkov-custom-ec2-inst-detailed-monitorng@v1.0
Category
Common Weakness Enumeration (CWE) external icon
-

Noncompliant example

1Resources:
2  ExampleEC2:
3    Type: AWS::EC2::Instance
4    Properties:
5      ImageId: !Ref LatestAmiId
6      InstanceType: !Ref pInstanceType
7      IamInstanceProfile: !Ref rInstanceProfile
8      # Noncompliant: `Monitoring` is set to `false`.
9      Monitoring: false

Compliant example

1Resources:
2  ExampleEC2:
3    Type: AWS::EC2::Instance
4    Properties:
5      ImageId: !Ref LatestAmiId
6      InstanceType: !Ref pInstanceType
7      IamInstanceProfile: !Ref rInstanceProfile
8      # Compliant: `Monitoring` is set to `true`.
9      Monitoring: true