Created
July 4, 2017 23:06
-
-
Save gcanales75/a4f5f190fd1962348afaea98375f3628 to your computer and use it in GitHub Desktop.
Crea alarma CW para monitorear espcio consumido en Bucket S3
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $topicARN = "arn:aws:sns:us-east-1:123445-miARN" | |
| Write-CWMetricAlarm ` | |
| -AlarmName "mi_alarma" ` | |
| -Namespace "AWS/S3" ` | |
| -MetricName BucketSizeBytes ` | |
| -ComparisonOperator GreaterThanOrEqualToThreshold ` | |
| -EvaluationPeriod 1 ` | |
| -Period 86400 ` | |
| -Statistic Maximum ` | |
| -Threshold 1073741824 ` | |
| -Dimension @{ Name="BucketName"; Value="nombre_de_mi_bucket" } ` | |
| -AlarmAction $topicARN |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment