From 1626ab174578166348625a0f50a86b15e2f61a85 Mon Sep 17 00:00:00 2001 From: KY Date: Sun, 14 Oct 2018 19:39:44 +0800 Subject: [PATCH] resource/aws_cloudwatch_metric_alarm: Validate alarm actions --- aws/resource_aws_cloudwatch_metric_alarm.go | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/aws/resource_aws_cloudwatch_metric_alarm.go b/aws/resource_aws_cloudwatch_metric_alarm.go index f15aa1b2e49..06b5e7a39fc 100644 --- a/aws/resource_aws_cloudwatch_metric_alarm.go +++ b/aws/resource_aws_cloudwatch_metric_alarm.go @@ -72,8 +72,11 @@ func resourceAwsCloudWatchMetricAlarm() *schema.Resource { "alarm_actions": { Type: schema.TypeSet, Optional: true, - Elem: &schema.Schema{Type: schema.TypeString}, - Set: schema.HashString, + Elem: &schema.Schema{ + Type: schema.TypeString, + ValidateFunc: validateArn, + }, + Set: schema.HashString, }, "alarm_description": { Type: schema.TypeString,