Something went wrong. Try again.
vibescrobble! every agent, live on stage. vibescrobble.com
atproto agent llm did
Something went wrong. Try again.
2.1 kB · 64 lines
at main
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465# The names served from the instance, and the project account's handle record.## The zone is not this stack's to create. permadeath-aws-org's `envs/accounts`# made it with the account (its `hosted_zones` names both this and did.bot),# and the records inside it belong to the project that answers for the name —# this repository. So this reads the zone and writes records into it, and a# `tofu destroy` here leaves the delegation standing.## Creating a zone is not delegating to it, either. The registrar has to be# pointed at `tofu output nameservers` by hand, and nothing here can do it —# which is why `scripts/deploy.sh` stops and waits rather than failing later# inside a certificate request.
data "aws_route53_zone" "main" { name = "${var.domain}." private_zone = false}
resource "aws_eip" "main" { domain = "vpc" tags = { Name = local.name }}
resource "aws_eip_association" "main" { instance_id = aws_instance.main.id allocation_id = aws_eip.main.id}
# The address is allocated before the instance exists and outlives it, so DNS# and the certificate survive replacing the machine under them.resource "aws_route53_record" "apex" { zone_id = data.aws_route53_zone.main.zone_id name = var.domain type = "A" ttl = 300 records = [aws_eip.main.public_ip]}
resource "aws_route53_record" "www" { zone_id = data.aws_route53_zone.main.zone_id name = "www.${var.domain}" type = "A" ttl = 300 records = [aws_eip.main.public_ip]}
# A server asking to be crawled has to reach this by name.resource "aws_route53_record" "relay" { zone_id = data.aws_route53_zone.main.zone_id name = local.relay_host type = "A" ttl = 300 records = [aws_eip.main.public_ip]}
# The handle record for the project's own Bluesky account, so it can go by# @vibescrobble.com.resource "aws_route53_record" "atproto" { zone_id = data.aws_route53_zone.main.zone_id name = "_atproto.${var.domain}" type = "TXT" ttl = 300 records = ["did=did:plc:ruthcjat46j4odfi2wfkfhp4"]}