Skip to content

Commit

Permalink
provider/aws: Increase timeouts for ELB (hashicorp#13161)
Browse files Browse the repository at this point in the history
  • Loading branch information
radeksimko authored and whoshuu committed Jul 18, 2017
1 parent fcf12bc commit 9e968c0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions builtin/providers/aws/resource_aws_elb.go
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,7 @@ func resourceAwsElbCreate(d *schema.ResourceData, meta interface{}) error {
}

log.Printf("[DEBUG] ELB create configuration: %#v", elbOpts)
err = resource.Retry(1*time.Minute, func() *resource.RetryError {
err = resource.Retry(5*time.Minute, func() *resource.RetryError {
_, err := elbconn.CreateLoadBalancer(elbOpts)

if err != nil {
Expand Down Expand Up @@ -455,7 +455,7 @@ func resourceAwsElbUpdate(d *schema.ResourceData, meta interface{}) error {

// Occasionally AWS will error with a 'duplicate listener', without any
// other listeners on the ELB. Retry here to eliminate that.
err := resource.Retry(1*time.Minute, func() *resource.RetryError {
err := resource.Retry(5*time.Minute, func() *resource.RetryError {
log.Printf("[DEBUG] ELB Create Listeners opts: %s", createListenersOpts)
if _, err := elbconn.CreateLoadBalancerListeners(createListenersOpts); err != nil {
if awsErr, ok := err.(awserr.Error); ok {
Expand Down Expand Up @@ -715,7 +715,7 @@ func resourceAwsElbUpdate(d *schema.ResourceData, meta interface{}) error {
}

log.Printf("[DEBUG] ELB attach subnets opts: %s", attachOpts)
err := resource.Retry(1*time.Minute, func() *resource.RetryError {
err := resource.Retry(5*time.Minute, func() *resource.RetryError {
_, err := elbconn.AttachLoadBalancerToSubnets(attachOpts)
if err != nil {
if awsErr, ok := err.(awserr.Error); ok {
Expand Down

0 comments on commit 9e968c0

Please sign in to comment.