• Skip to main content

Uly.me

cloud engineer

  • Home
  • About
  • Archives

cloudwatch

CloudWatch Notifications

September 7, 2022

How to give someone access to enable/disable CloudWatch notifications.

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

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

Filed Under: Cloud Tagged With: aws, cloudwatch, disable, enable, notifications

AWS CloudWatch Alarms

October 25, 2021

How to enable and disable CloudWatch alarms

$ aws cloudwatch disable-alarm-actions --alarm-names myalarm --region us-east-1
$ aws cloudwatch enable-alarm-actions --alarm-names myalarm --region us-east-1

$ aws cloudwatch disable-alarm-actions --alarm-names myalarm --region us-east-1 $ aws cloudwatch enable-alarm-actions --alarm-names myalarm --region us-east-1

Filed Under: Cloud Tagged With: alarm, aws, cloudwatch, disable, enable

AWS CloudWatch EFS Burst Credits

December 31, 2019

Here’s how to get the EFS Burst Credits from CloudWatch via AWS CLI.

aws cloudwatch get-metric-statistics \
--namespace "AWS/EFS" \
--metric-name BurstCreditBalance \
--dimensions "Name=FileSystemId,Value=fs-xxxxxxx" \
--start-time 2019-12-31T00:00:00Z \
--end-time 2019-12-31T01:00:00Z \
--statistics Average \
--period 3600 \
--profile default

aws cloudwatch get-metric-statistics \ --namespace "AWS/EFS" \ --metric-name BurstCreditBalance \ --dimensions "Name=FileSystemId,Value=fs-xxxxxxx" \ --start-time 2019-12-31T00:00:00Z \ --end-time 2019-12-31T01:00:00Z \ --statistics Average \ --period 3600 \ --profile default

Notice the start time, end time, period and statistics. Here’s the CLI doc.

Filed Under: Cloud Tagged With: aws, burst credits, cli, cloudwatch, efs

  • Home
  • About
  • Archives

Copyright © 2023