provider/aws: Shorting retry timeout for Security Groups to 2 minutes, from 5

This commit is contained in:
Clint Shryock 2015-05-05 11:07:16 -05:00
parent 7c62329506
commit 3ce3b7c516
1 changed files with 1 additions and 1 deletions

View File

@ -261,7 +261,7 @@ func resourceAwsSecurityGroupDelete(d *schema.ResourceData, meta interface{}) er
log.Printf("[DEBUG] Security Group destroy: %v", d.Id()) log.Printf("[DEBUG] Security Group destroy: %v", d.Id())
return resource.Retry(5*time.Minute, func() error { return resource.Retry(2*time.Minute, func() error {
_, err := conn.DeleteSecurityGroup(&ec2.DeleteSecurityGroupInput{ _, err := conn.DeleteSecurityGroup(&ec2.DeleteSecurityGroupInput{
GroupID: aws.String(d.Id()), GroupID: aws.String(d.Id()),
}) })