Error: resource aws_eip_association doesn't support import #4876
Labels
enhancement
Requests to existing resources that expand the functionality or scope.
service/ec2
Issues and PRs that pertain to the ec2 service.
Milestone
This issue was originally opened by @JamieGruener as hashicorp/terraform#18281. It was migrated here as a result of the provider split. The original body of the issue is below.
Terraform Version
Terraform Configuration Files
Debug Output
2018/06/18 16:15:11 [TRACE] root: eval: *terraform.EvalImportState
2018/06/18 16:15:11 [ERROR] root: eval: *terraform.EvalImportState, err: import aws_eip_association.openvpn-eip-assoc (id: eipassoc-6xxxxxx9): resource aws_eip_association doesn't support import
2018/06/18 16:15:11 [ERROR] root: eval: *terraform.EvalSequence, err: import aws_eip_association.openvpn-eip-assoc (id: eipassoc-6xxxxxx9): resource aws_eip_association doesn't support import
2018/06/18 16:15:11 [TRACE] [walkImport] Exiting eval tree: aws_eip_association.openvpn-eip-assoc (import id: eipassoc-6xxxxxx9)
2018/06/18 16:15:11 [TRACE] dag/walk: upstream errored, not walking "provider.aws (close)"
Crash Output
Expected Behavior
Terraform would import the resource.
Actual Behavior
Steps to Reproduce
terraform import aws_eip_association.openvpn-eip-assoc eipassoc-6xxxxxx9
Additional Context
The EIP existed prior to being documented in Terraform. Also, the documentation suggests that the resource exists specifically to solve the problem I'm having, namely connecting an existing EIP to an aws_instance resource. (https://www.terraform.io/docs/providers/aws/r/eip_association.html)
Just in case I misunderstood the documentation, I've tried both the allocation ID and association ID as the resource ID to import.
References
The text was updated successfully, but these errors were encountered: