Loading...
Loading...
### Terraform Version ```shell v1.6.6 ``` ### Terraform Configuration Files ```terraform ...terraform config... ``` ### Debug Output ``` Error: deleting ENIs using Security Group (sg-0647afd6bb6bae57c): 2 errors occurred: * detaching RDS ENI (eni-09aa2a11a668d6ccf): detaching EC2 Network Interface (eni-09aa2a11a668d6ccf/eni-attach-07a7d1103a73bfcc8): operation error EC2: DetachNetworkInterface, https response error StatusCode: 400, RequestID: 6a730a5f-f756-4825-a47c-66aaf8c30760, api error AuthFailure: You do not have permission to access the specified resource. * detaching RDS ENI (eni-07df576d118d60b18): detaching EC2 Network Interface (eni-07df576d118d60b18/eni-attach-04e9d86bba492a30c): operation error EC2: DetachNetworkInterface, https response error StatusCode: 400, RequestID: 5c4197c5-6001-4039-b3cf-b13378598d1d, api error AuthFailure: You do not have permission to access the specified resource.``` ### Expected Behavior **Question:** Why is Terraform trying to detach the ENI from the RDS instance in the first place? **Expected Behaviour:** Successfully requested update of external resource ### Actual Behavior I'm using Terraform to import an RDS instance created in AWS. I've successfully imported around six RDS instances. However, when I try to import the RDS instance named DB1, I'm facing a strange issue. After importing all the resources, when I run terraform apply, Terraform attempts to detach the RDS ENI. Specifically, it's trying to detach the EC2 network interface, and I'm not sure why it's doing that. This action ends up removing all the security group rules attached to the RDS instance, which causes connectivity issues with my application. ### Steps to Reproduce 1. terraform init 2. terraform plan 3. terraform apply ### Additional Context _No response_ ### References _No response_ ### Generative AI / LLM assisted development? _No response_
Click on a version to see all relevant bugs
Terraform Integration
Learn more about where this data comes from
Bug Scrub Advisor
Streamline upgrades with automated vendor bug scrubs
BugZero Enterprise
Wish you caught this bug sooner? Get proactive today.