providers/aws: timeout in state change conf
This commit is contained in:
parent
2663bb993a
commit
fd4eeac7dc
|
@ -85,6 +85,7 @@ func resource_aws_instance_destroy(
|
||||||
Pending: []string{"pending", "running", "shutting-down", "stopped", "stopping"},
|
Pending: []string{"pending", "running", "shutting-down", "stopped", "stopping"},
|
||||||
Target: "terminated",
|
Target: "terminated",
|
||||||
Refresh: InstanceStateRefreshFunc(ec2conn, s.ID),
|
Refresh: InstanceStateRefreshFunc(ec2conn, s.ID),
|
||||||
|
Timeout: 10 * time.Minute,
|
||||||
}
|
}
|
||||||
|
|
||||||
_, err := stateConf.WaitForState()
|
_, err := stateConf.WaitForState()
|
||||||
|
|
Loading…
Reference in New Issue