|
|
|
|
@ -22,6 +22,11 @@ func resourceLBMemberV1() *schema.Resource {
|
|
|
|
|
State: schema.ImportStatePassthrough,
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
Timeouts: &schema.ResourceTimeout{
|
|
|
|
|
Create: schema.DefaultTimeout(10 * time.Minute),
|
|
|
|
|
Delete: schema.DefaultTimeout(10 * time.Minute),
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
Schema: map[string]*schema.Schema{
|
|
|
|
|
"region": &schema.Schema{
|
|
|
|
|
Type: schema.TypeString,
|
|
|
|
|
@ -91,7 +96,7 @@ func resourceLBMemberV1Create(d *schema.ResourceData, meta interface{}) error {
|
|
|
|
|
Pending: []string{"PENDING_CREATE"},
|
|
|
|
|
Target: []string{"ACTIVE", "INACTIVE", "CREATED", "DOWN"},
|
|
|
|
|
Refresh: waitForLBMemberActive(networkingClient, m.ID),
|
|
|
|
|
Timeout: 2 * time.Minute,
|
|
|
|
|
Timeout: d.Timeout(schema.TimeoutCreate),
|
|
|
|
|
Delay: 5 * time.Second,
|
|
|
|
|
MinTimeout: 3 * time.Second,
|
|
|
|
|
}
|
|
|
|
|
@ -181,7 +186,7 @@ func resourceLBMemberV1Delete(d *schema.ResourceData, meta interface{}) error {
|
|
|
|
|
Pending: []string{"ACTIVE", "PENDING_DELETE"},
|
|
|
|
|
Target: []string{"DELETED"},
|
|
|
|
|
Refresh: waitForLBMemberDelete(networkingClient, d.Id()),
|
|
|
|
|
Timeout: 2 * time.Minute,
|
|
|
|
|
Timeout: d.Timeout(schema.TimeoutDelete),
|
|
|
|
|
Delay: 5 * time.Second,
|
|
|
|
|
MinTimeout: 3 * time.Second,
|
|
|
|
|
}
|
|
|
|
|
|