Skip to content

Commit

Permalink
Extends GlobalReplicationGroupDefaultCreatedTimeout to 25 minutes
Browse files Browse the repository at this point in the history
  • Loading branch information
gdavison committed Apr 22, 2022
1 parent 519a792 commit 63d345e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion internal/service/elasticache/global_replication_group.go
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ func resourceGlobalReplicationGroupCreate(d *schema.ResourceData, meta interface
d.SetId(aws.StringValue(output.GlobalReplicationGroup.GlobalReplicationGroupId))

if _, err := WaitGlobalReplicationGroupAvailable(conn, d.Id(), GlobalReplicationGroupDefaultCreatedTimeout); err != nil {
return fmt.Errorf("error waiting for ElastiCache Global Replication Group (%s) availability: %w", d.Id(), err)
return fmt.Errorf("error waiting for ElastiCache Global Replication Group (%s) creation: %w", d.Id(), err)
}

return resourceGlobalReplicationGroupRead(d, meta)
Expand Down
2 changes: 1 addition & 1 deletion internal/service/elasticache/replication_group.go
Original file line number Diff line number Diff line change
Expand Up @@ -589,7 +589,7 @@ func resourceReplicationGroupCreate(d *schema.ResourceData, meta interface{}) er
// to be fully added to the global replication group.
// API calls to the global replication group can be made in any region.
if _, err := WaitGlobalReplicationGroupAvailable(conn, v.(string), GlobalReplicationGroupDefaultCreatedTimeout); err != nil {
return fmt.Errorf("error waiting for ElastiCache Global Replication Group (%s) availability: %w", v, err)
return fmt.Errorf("error waiting for ElastiCache Global Replication Group (%s) to be available: %w", v, err)
}
}

Expand Down
2 changes: 1 addition & 1 deletion internal/service/elasticache/wait.go
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ func WaitCacheClusterDeleted(conn *elasticache.ElastiCache, cacheClusterID strin
}

const (
GlobalReplicationGroupDefaultCreatedTimeout = 20 * time.Minute
GlobalReplicationGroupDefaultCreatedTimeout = 25 * time.Minute
GlobalReplicationGroupDefaultUpdatedTimeout = 40 * time.Minute
GlobalReplicationGroupDefaultDeletedTimeout = 20 * time.Minute

Expand Down

0 comments on commit 63d345e

Please sign in to comment.