Skip to content

Commit

Permalink
Merge pull request #9630 from terraform-providers/rfd-retry-dax
Browse files Browse the repository at this point in the history
Final retries creating and deleting Dax clusters
  • Loading branch information
ryndaniels committed Aug 7, 2019
2 parents e889bf7 + 354766d commit 93b7c79
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion aws/resource_aws_dax_cluster.go
Original file line number Diff line number Diff line change
Expand Up @@ -229,6 +229,9 @@ func resourceAwsDaxClusterCreate(d *schema.ResourceData, meta interface{}) error
}
return nil
})
if isResourceTimeoutError(err) {
resp, err = conn.CreateCluster(req)
}
if err != nil {
return fmt.Errorf("Error creating DAX cluster: %s", err)
}
Expand Down Expand Up @@ -486,8 +489,11 @@ func resourceAwsDaxClusterDelete(d *schema.ResourceData, meta interface{}) error
}
return nil
})
if isResourceTimeoutError(err) {
_, err = conn.DeleteCluster(req)
}
if err != nil {
return err
return fmt.Errorf("Error deleting DAX cluster: %s", err)
}

log.Printf("[DEBUG] Waiting for deletion: %v", d.Id())
Expand Down

0 comments on commit 93b7c79

Please sign in to comment.