I am trying to create an alarm for aws transfer family sever's BytesIn metric. If I click on the alarm button near the metric's name:
I am led to the alarm creation page where the namespace, metric name and server id are already specified. However, when I try to create an alarm via terraform, I don't see any argument where I can specify the serverId. So how can I link a particular server to this alarm?
resource "aws_cloudwatch_metric_alarm" "foobar" {
alarm_name = "test-alarm"
comparison_operator = "LessThanOrEqualToThreshold"
evaluation_periods = "2"
metric_name = "BytesIn"
namespace = "AWS/Transfer"
period = "3600"
statistic = "Sum"
threshold = "0"
alarm_description = "This metric monitors ftp connection"
insufficient_data_actions = []
}