Skip to content

Commit

Permalink
Forcing all Route 53 Healthcheck Types to be Uppercase or it would sh…
Browse files Browse the repository at this point in the history
…ow diffs unnecessarily
  • Loading branch information
stack72 committed Nov 30, 2015
1 parent 0c733b3 commit 01df20a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions builtin/providers/aws/resource_aws_route53_health_check.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package aws
import (
"fmt"
"log"
"strings"
"time"

"github.com/hashicorp/terraform/helper/schema"
Expand All @@ -24,6 +25,9 @@ func resourceAwsRoute53HealthCheck() *schema.Resource {
Type: schema.TypeString,
Required: true,
ForceNew: true,
StateFunc: func(val interface{}) string {
return strings.ToUpper(val.(string))
},
},
"failure_threshold": &schema.Schema{
Type: schema.TypeInt,
Expand Down

0 comments on commit 01df20a

Please sign in to comment.