diff --git a/builtin/providers/aws/resource_aws_cloudwatch_event_target.go b/builtin/providers/aws/resource_aws_cloudwatch_event_target.go index 9ff8d20ab7..73d362fc80 100644 --- a/builtin/providers/aws/resource_aws_cloudwatch_event_target.go +++ b/builtin/providers/aws/resource_aws_cloudwatch_event_target.go @@ -29,10 +29,10 @@ func resourceAwsCloudWatchEventTarget() *schema.Resource { }, "target_id": &schema.Schema{ - Type: schema.TypeString, - Optional: true, - Computed: true, - ForceNew: true, + Type: schema.TypeString, + Optional: true, + Computed: true, + ForceNew: true, ValidateFunc: validateCloudWatchEventTargetId, }, diff --git a/builtin/providers/aws/resource_aws_cloudwatch_event_target_test.go b/builtin/providers/aws/resource_aws_cloudwatch_event_target_test.go index 42340d9b30..a5509bec8a 100644 --- a/builtin/providers/aws/resource_aws_cloudwatch_event_target_test.go +++ b/builtin/providers/aws/resource_aws_cloudwatch_event_target_test.go @@ -166,7 +166,7 @@ resource "aws_cloudwatch_event_target" "moobar" { } resource "aws_sns_topic" "moon" { - name = "tf-acc-moon-1" + name = "tf-acc-moon" } `