diff options
| author | Xe Iaso <me@xeiaso.net> | 2024-11-25 14:35:35 -0500 |
|---|---|---|
| committer | Xe Iaso <me@xeiaso.net> | 2024-11-25 14:35:35 -0500 |
| commit | cdba95496fd16baca8b6bcd7bb03302b73813dc1 (patch) | |
| tree | 7b784a27ccdeba389da1b301ba2952796917e146 /docs/bsky/didweb/pds.tf | |
| parent | 26a583da49b53045f17bec1260aeb1803cda6760 (diff) | |
| download | x-cdba95496fd16baca8b6bcd7bb03302b73813dc1.tar.xz x-cdba95496fd16baca8b6bcd7bb03302b73813dc1.zip | |
docs/bsky: add didweb notes
Signed-off-by: Xe Iaso <me@xeiaso.net>
Diffstat (limited to 'docs/bsky/didweb/pds.tf')
| -rw-r--r-- | docs/bsky/didweb/pds.tf | 69 |
1 files changed, 69 insertions, 0 deletions
diff --git a/docs/bsky/didweb/pds.tf b/docs/bsky/didweb/pds.tf new file mode 100644 index 0000000..a79fea2 --- /dev/null +++ b/docs/bsky/didweb/pds.tf @@ -0,0 +1,69 @@ +data "aws_route53_zone" "within_website" { + name = "within.website." +} + +data "civo_ssh_key" "shiroko" { + name = "shiroko" +} + +data "civo_disk_image" "ubuntu" { + filter { + key = "name" + values = ["ubuntu-noble"] + } +} + +resource "civo_network" "pds" { + label = "bsky-pds" +} + +resource "civo_firewall" "pds" { + name = "bsky-pds" + network_id = civo_network.pds.id + create_default_rules = false + + ingress_rule { + label = "yolo" + protocol = "tcp" + port_range = "1-65535" + cidr = ["0.0.0.0/0"] + action = "allow" + } + + egress_rule { + label = "yolo" + protocol = "tcp" + port_range = "1-65535" + cidr = ["0.0.0.0/0"] + action = "allow" + } +} + +resource "civo_instance" "engram" { + hostname = "engram" + tags = ["xe", "pds"] + notes = "Bluesky PDS for pds.within.website" + sshkey_id = data.civo_ssh_key.shiroko.id + firewall_id = civo_firewall.pds.id + network_id = civo_network.pds.id + size = "g4s.xsmall" + disk_image = data.civo_disk_image.ubuntu.diskimages[0].id + script = file("${path.module}/assimilate.sh") + volume_type = "ms-xfs-2-replicas" +} + +resource "aws_route53_record" "engram-within-website--A" { + zone_id = data.aws_route53_zone.within_website.zone_id + name = "engram.${data.aws_route53_zone.within_website.name}" + type = "A" + ttl = "3600" + records = [civo_instance.engram.public_ip] +} + +resource "aws_route53_record" "star-engram-within-website--A" { + zone_id = data.aws_route53_zone.within_website.zone_id + name = "*.engram.${data.aws_route53_zone.within_website.name}" + type = "A" + ttl = "3600" + records = [civo_instance.engram.public_ip] +}
\ No newline at end of file |
