From 47ed8f481d298bdcfed75f7c332980c983d77caa Mon Sep 17 00:00:00 2001 From: Khue Doan Date: Mon, 20 Jul 2020 13:55:27 +0700 Subject: [PATCH] Add test container --- terraform/main.tf | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/terraform/main.tf b/terraform/main.tf index 8e9edcf7..ca127af7 100644 --- a/terraform/main.tf +++ b/terraform/main.tf @@ -1,2 +1,17 @@ provider "lxd" { } + +resource "lxd_container" "test1" { + name = "test1" + remote = "images" + image = "ubuntu/18.04" + ephemeral = false + + config = { + "boot.autostart" = true + } + + limits = { + cpu = 2 + } +}