Error: deleting ENIs for EC2 Subnet (subnet-1234): 1 error occurred:
* waiting for Lambda ENI (eni-1234) to become available for detachment: context canceled
Actual Behavior
The specified custom deletion timeout (5min) to aws_subnet to be respected.
Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for issue followers and do not help prioritize the request.
Volunteering to Work on This Issue
If you are interested in working on this issue, please leave a comment.
If this would be your first contribution, please review the contribution guide.
Terraform Core Version
v1.7.4
AWS Provider Version
v4.55.0 (but should be reproducible with v5.38.0)
Affected Resource(s)
Expected Behavior
In https://github.com/hashicorp/terraform-provider-aws/blob/a051f0d485a1e2f78fc7fb8a1bcda3202a7f1118/internal/service/ec2/vpc_network_interface.go#L1505-L1508 the timeout specified for a subnet deletion is not respected and the timeout is being set to at least 45mins. This breaks part of our machinery as we expect a specified timeout to a subnet deletion (5min) to be respected. Instead, the terraform process waits for 45mins for AWS Lambda ENIs to be deleted:
Actual Behavior
The specified custom deletion timeout (5min) to
aws_subnet
to be respected.Relevant Error/Panic Output Snippet
No response
Terraform Configuration Files
Steps to Reproduce
terraform apply
the above configterraform destroy
Debug Output
Panic Output
No response
Important Factoids
No response
References
No response
Would you like to implement a fix?
None