EC2 Instance Monitoring Disabled

  • Query id: daa581ef-731c-4121-832d-cf078f67759d
  • Query name: EC2 Instance Monitoring Disabled
  • Platform: Pulumi
  • Severity: Info
  • Category: Observability
  • URL: Github

Description

EC2 Instance should have detailed monitoring enabled. With detailed monitoring enabled data is available in 1-minute periods
Documentation

Code samples

Code samples with security vulnerabilities

Postitive test num. 1 - yaml file
name: aws-eks
runtime: yaml
description: An EKS cluster
resources:
  example:
    type: aws:ec2:Instance
    properties:
---
name: aws-eks
runtime: yaml
description: An EKS cluster
resources:
  example:
    type: aws:ec2:Instance
    properties:
      monitoring: false

Code samples without security vulnerabilities

Negative test num. 1 - yaml file
name: aws-eks
runtime: yaml
description: An EKS cluster
resources:
  example:
    type: aws:ec2:Instance
    properties:
      monitoring: true