From 150e997a96641b80b7a6893045e513a6b759e9e2 Mon Sep 17 00:00:00 2001 From: stack72 Date: Mon, 23 Nov 2015 12:54:56 +0000 Subject: [PATCH] Changing the AWS ElastiCache cluster maintenance_window to enforce lowercase --- builtin/providers/aws/resource_aws_elasticache_cluster.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/builtin/providers/aws/resource_aws_elasticache_cluster.go b/builtin/providers/aws/resource_aws_elasticache_cluster.go index d03ae89e82bd..cffcdab2dedb 100644 --- a/builtin/providers/aws/resource_aws_elasticache_cluster.go +++ b/builtin/providers/aws/resource_aws_elasticache_cluster.go @@ -71,6 +71,11 @@ func resourceAwsElasticacheCluster() *schema.Resource { Type: schema.TypeString, Optional: true, Computed: true, + StateFunc: func(val interface{}) string { + // Elasticache always changes the maintenance + // to lowercase + return strings.ToLower(val.(string)) + }, }, "subnet_group_name": &schema.Schema{ Type: schema.TypeString,