terraform-provider-lxd icon indicating copy to clipboard operation
terraform-provider-lxd copied to clipboard

Create images from local files

Open Hybrid512 opened this issue 2 years ago • 0 comments

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

Hybrid512 avatar Jun 20 '22 14:06 Hybrid512