Open tregubovav-dev opened 1 week ago
Below is a workaround:
Modifying image
attribute in incus_instance
resource from image = incus_image.alpine.fingerprint
to image = format("${incus_cached_image.alpine.source_remote}:${incus_cached_image.alpine.fingerprint}")
makes the configuration work.
But, it's still not clear why image remote is required to create instance from cached image.
The LXD team fixed and closed the same bug in terraform-provider-lxd
already. I would suggest to merge the same fix to the terraform-provider-incus
Issue
[Description was rewritten on July 7, 2024 after addition investigation]
terraform-provider-incus
provider fails to create the instance in the project not equal to "default" if image fingerprint assigned toimage
attribute instead ofimage name
. Instance creation fails in this case with message like below:Steps to reproduce
Failed configuration
Working configurations
OR
incus_image
documentation shows how to use 'incus_instance' with 'incus_image` resource. However it does not work.I also tried to assign short or long hardcoded 'fingerprint' value of existing image getting by command
incus image list --project test
with the same result.terraform-provider-lxd has the same issue.