Changing the AWS ElastiCache cluster maintenance_window to enforce lowercase

This commit is contained in:
stack72 2015-11-23 12:54:56 +00:00
parent b4725d4fa3
commit 150e997a96
1 changed files with 5 additions and 0 deletions

View File

@ -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,