Forcing all Route 53 Healthcheck Types to be Uppercase or it would show diffs unnecessarily

This commit is contained in:
stack72 2015-11-03 23:29:53 +00:00 committed by clint shryock
parent 3ebbb62bb0
commit e635878b11
2 changed files with 17 additions and 13 deletions

View File

@ -3,6 +3,7 @@ package aws
import ( import (
"fmt" "fmt"
"log" "log"
"strings"
"time" "time"
"github.com/hashicorp/terraform/helper/schema" "github.com/hashicorp/terraform/helper/schema"
@ -24,6 +25,9 @@ func resourceAwsRoute53HealthCheck() *schema.Resource {
Type: schema.TypeString, Type: schema.TypeString,
Required: true, Required: true,
ForceNew: true, ForceNew: true,
StateFunc: func(val interface{}) string {
return strings.ToUpper(val.(string))
},
}, },
"failure_threshold": &schema.Schema{ "failure_threshold": &schema.Schema{
Type: schema.TypeInt, Type: schema.TypeInt,