lxc / terraform-provider-incus

Incus provider for Terraform/OpenTofu
https://linuxcontainers.org/incus
Mozilla Public License 2.0
35 stars 8 forks source link

Use another instance as the source of an instance (copy) #80

Open stgraber opened 3 weeks ago

stgraber commented 3 weeks ago

This is somewhat related to #42 in that there are other ways to create instances.

A common one I find myself needing is the ability to create an instance from another one.

This would likely look something like:

resource "incus_instance" "this" {
    remote = "my-cluster"
    project = "my-project"
    target = "some-server"

    name = "foo"
    type = "container"

    source_instance {
        project = "source-project"
        name = "bar"
        snapshot = "snap0"
    }
}