terraform-provider-lxd
terraform-provider-lxd copied to clipboard
Create images from local files
Hi,
I'd like to create images directly with Terraform based on local qcow2 images (this is for VM provisionning). I can easily create a new image with the lxc cli and then spawn some VMs with Terraform but I'd like to do the whole stuff directly with Terraform. To make it clear, I'd like to do the equivalent of :
lxc image import metadata.tar.xz jammy-server-cloudimg-amd64.img.tar.xz --alias ubuntu-jammy-22.04
but with Terraform. Is it possible ? Can you provide an example because I'm quite confused with the documentation regarding the "images" part.
Best regards