Skip to content

Commit

Permalink
hashicorp#20068 logdeliveryconfigurations add update to `aws_elastica…
Browse files Browse the repository at this point in the history
…che_cluster`
  • Loading branch information
nickolivera committed Sep 23, 2021
1 parent 15ba4a8 commit d91504f
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions aws/resource_aws_elasticache_cluster.go
Original file line number Diff line number Diff line change
Expand Up @@ -533,6 +533,15 @@ func resourceAwsElasticacheClusterUpdate(d *schema.ResourceData, meta interface{
requestUpdate = true
}

if d.HasChange("log_delivery_configurations") {
validateError := validateAwsElasticacheLogDeliveryConfigurations(d)
if validateError != nil {
return validateError
}
req.LogDeliveryConfigurations = expandAwsElasticacheLogDeliveryConfigurations(d)
requestUpdate = true
}

if d.HasChange("maintenance_window") {
req.PreferredMaintenanceWindow = aws.String(d.Get("maintenance_window").(string))
requestUpdate = true
Expand Down

0 comments on commit d91504f

Please sign in to comment.