Monitoring is not enabled for EC2 instances. Ensure to enable Monitoring.
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
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