Terraform v0.9.0-dev (89acb5811a25e59e6a9d55cf5a2429846e3b5982+CHANGES)
openstack_compute_instance_v2
resource "openstack_compute_instance_v2" "test" {
name = "test"
image_id = "ubuntu"
flavor_name = "m1.large"
key_pair = "misko"
availability_zone = "mz"
}
resource should be imported
Error importing: 1 error(s) occurred:
* import openstack_compute_instance_v2.test (id: 2a98121a-5ec0-4694-98f2-9aff75bc666c): resource openstack_compute_instance_v2 doesn't support import
.tf file@michalmedvecky I'm not sure how I missed this Issue. Sorry for the late reply.
This is correct: instances do not have the ability to be imported. They should be able to soon. There's an existing Issue/PR for this at #11379, so I'm going to close this issue. Please let me know if you have any questions, though. :)
@jtopjian Any update on this? Let me know if there is anything I can do to get this going.
@akitada Now that floating IPs and volumes have been deprecated, it should be possible to start working on this. It's just that those two pieces won't be supported. Reading in the networks is going to be the next hurdle since there isn't an easy way to obtain a network UUID from the instance's information alone. I do not want to mix in a Neutron client into the instance resource at this time, so it'll be interesting to see how difficult this is.
I've been a bit busy at work lately but hope to dedicate some time to getting caught up with the queue of feature requests soon. If you'd like to give this a try, by all means go for it. I'd be happy to answer any questions you have :)
Re-opening since the referenced PR couldn't get merged.
This issue has been automatically migrated to terraform-providers/terraform-provider-openstack#121 because it looks like an issue with that provider. If you believe this is _not_ an issue with the provider, please reply to this issue and let us know.
I'm going to lock this issue because it has been closed for _30 days_ โณ. This helps our maintainers find and focus on the active issues.
If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.
Most helpful comment
@michalmedvecky I'm not sure how I missed this Issue. Sorry for the late reply.
This is correct: instances do not have the ability to be imported. They should be able to soon. There's an existing Issue/PR for this at #11379, so I'm going to close this issue. Please let me know if you have any questions, though. :)