Skip to content

Commit 0f6bc9d

Browse files
committed
r/aws_eip: Increase IPAM pool deletion timeout.
1 parent a3bbaae commit 0f6bc9d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

internal/service/ec2/ec2_eip.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,8 @@ func resourceEIP() *schema.Resource {
4141

4242
Timeouts: &schema.ResourceTimeout{
4343
Read: schema.DefaultTimeout(15 * time.Minute),
44-
Update: schema.DefaultTimeout(5 * time.Minute),
45-
Delete: schema.DefaultTimeout(3 * time.Minute),
44+
Update: schema.DefaultTimeout(5 * time.Minute), // Unused.
45+
Delete: schema.DefaultTimeout(3 * time.Minute), // Unused.
4646
},
4747

4848
Schema: map[string]*schema.Schema{
@@ -334,7 +334,7 @@ func resourceEIPDelete(ctx context.Context, d *schema.ResourceData, meta any) di
334334
if v, ok := d.GetOk("ipam_pool_id"); ok {
335335
ipamPoolID := v.(string)
336336
const (
337-
timeout = 10 * time.Minute // IPAM eventual consistency
337+
timeout = 20 * time.Minute // IPAM eventual consistency
338338
)
339339
_, err := tfresource.RetryUntilNotFound(ctx, timeout, func(ctx context.Context) (any, error) {
340340
return findIPAMPoolAllocationsByIPAMPoolIDAndResourceID(ctx, conn, ipamPoolID, d.Get("allocation_id").(string))

0 commit comments

Comments
 (0)