summaryrefslogtreecommitdiff
path: root/tofu/basic/main.tf
diff options
context:
space:
mode:
Diffstat (limited to 'tofu/basic/main.tf')
-rw-r--r--tofu/basic/main.tf25
1 files changed, 25 insertions, 0 deletions
diff --git a/tofu/basic/main.tf b/tofu/basic/main.tf
new file mode 100644
index 0000000..7da8687
--- /dev/null
+++ b/tofu/basic/main.tf
@@ -0,0 +1,25 @@
+terraform {
+ required_providers {
+ incus = {
+ source = "lxc/incus"
+ version = "0.3.1"
+ }
+ }
+}
+
+provider "incus" {
+ # Configuration options
+}
+
+resource "incus_instance" "test" {
+ name = "test"
+ image = "images:ubuntu/22.04"
+ project = "Lab"
+ wait_for {
+ type = "ipv4"
+ }
+}
+
+output "instance_ip" {
+ value = incus_instance.test.ipv4_address
+}