summaryrefslogtreecommitdiffstats
path: root/__main__.py
blob: 154cb7e2e8dc51e9333258c2d68ebed33ea57ac0 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
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,
    },
)