CloudWatch

Definition

Amazon CloudWatch is a monitoring and observability service provided by AWS that offers data and actionable insights to monitor applications, respond to system-wide performance changes, and optimize resource utilization. It collects and tracks metrics, collects and monitors log files, and sets alarms, providing a unified view of AWS resources, applications, and services running on AWS and on-premises servers.

Secure Settings Example

{
  "Version": "2012-10-17",
  "Statement": [
    {
      "Effect": "Allow",
      "Action": [
        "cloudwatch:PutMetricData",
        "cloudwatch:GetMetricData",
        "cloudwatch:ListMetrics"
      ],
      "Resource": "*",
      "Condition": {
        "IpAddress": {
          "aws:SourceIp": "203.0.113.0/24"
        }
      }
    }
  ]
}

Insecure Settings Example

{
  "Version": "2012-10-17",
  "Statement": [
    {
      "Effect": "Allow",
      "Action": "cloudwatch:*",
      "Resource": "*"
    }
  ]
}