Terraform v0.10.2
tfstate should bring all the network interfaces attached to the instance like ebs block devices.
It always import 0 interfaces
terraform import aws_instance.test instance-id
terraform.tfstate
, you will see network_interface.#: "0"
terraform plan
you will get -/+ aws_instance.test (new resource required) ... Plan: 1 to add, 0 to change, 1 to destroy.
I believe this is still an issue. Is there any work around or fix?
figured it out, moved attachment declaration from inside of instance to inside of network_interface and all was good.
Given the original issue reporter is no longer on GitHub and the above comments are self-resolved, I'm going to close this.
Most helpful comment
figured it out, moved attachment declaration from inside of instance to inside of network_interface and all was good.