These are chat archives for aws/aws-cli

5th
Dec 2016
Andrew Pawloski
@apawloski
Dec 05 2016 21:52
It looks like aws cloudwatch put-metric-alarm may not properly handle a list of dimensions (instead only taking the last dimension listed)
e.g.
aws cloudwatch put-metric-alarm --alarm-name 'Dimensions-Test-1' --actions-enabled --namespace System/Linux --statistic Average --period 300 --comparison-operator GreaterThanOrEqualToThreshold --evaluation-periods 1 --metric-name DiskSpaceUtilization --dimensions Name=MountPath,Value='/',Name=InstanceId,Value=blah --threshold 95 will create an alarm with Dimension InstanceId=Blah, whereas
aws cloudwatch put-metric-alarm --alarm-name 'Dimensions-Test-2' --actions-enabled --namespace System/Linux --statistic Average --period 300 --comparison-operator GreaterThanOrEqualToThreshold --evaluation-periods 1 --metric-name DiskSpaceUtilization --dimensions Name=InstanceId,Value=blah,Name=MountPath,Value='/' --threshold 95 will create an alarm with Dimension MountPath='/'
Is this the intended behavior? I know it is possible to create one with multiple dimensions in ruby, for example
Andrew Pawloski
@apawloski
Dec 05 2016 22:09
Disregard. Forgot a space.
I have shamed myself.