summaryrefslogtreecommitdiffstats
path: root/__main__.py
diff options
context:
space:
mode:
Diffstat (limited to '__main__.py')
-rw-r--r--__main__.py25
1 files changed, 25 insertions, 0 deletions
diff --git a/__main__.py b/__main__.py
new file mode 100644
index 0000000..154cb7e
--- /dev/null
+++ b/__main__.py
@@ -0,0 +1,25 @@
+import sys
+
+import pulumi
+
+sys.path.append(".")
+
+from tozt.instance import Instance # noqa: E402
+
+tozt = Instance(
+ "tozt",
+ region="nyc3",
+ size="s-1vcpu-2gb",
+ dns_name="tozt.net",
+ reserved_ip="138.197.58.11",
+ volume_name="tozt-persistent",
+)
+
+pulumi.export(
+ "tozt",
+ {
+ "ip": tozt.instance.ipv4_address,
+ "domain": tozt.dns_name,
+ "reserved_ip": tozt.reserved_ip,
+ },
+)