providers/aws: timeout in state change conf

This commit is contained in:
Jack Pearkes 2014-07-01 10:11:11 -07:00
parent 2663bb993a
commit fd4eeac7dc
1 changed files with 1 additions and 0 deletions

View File

@ -85,6 +85,7 @@ func resource_aws_instance_destroy(
Pending: []string{"pending", "running", "shutting-down", "stopped", "stopping"},
Target: "terminated",
Refresh: InstanceStateRefreshFunc(ec2conn, s.ID),
Timeout: 10 * time.Minute,
}
_, err := stateConf.WaitForState()