task: evidence for live Managed DB verification (#64)

Throwaway branch, never merged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
BobbyandClaude Opus 5.5 committed 2026-11-24 08:33:45 -05:00
1 parent 2aea5ebaef
commit cada14bb94
5 files changed
+597

No files matched your search

+75
View File
@@ -0,0 +1,75 @@
terraform {
required_providers {
linode = { source = "linode/linode", version = "~> 4.10" }
}
}
provider "linode" {}
resource "linode_vpc" "v" {
label = "hapi-verify-64"
region = "us-iad"
}
resource "linode_vpc_subnet" "s" {
vpc_id = linode_vpc.v.id
label = "hapi-verify-64"
ipv4 = "10.64.0.0/24"
}
resource "linode_database_postgresql_v2" "db" {
label = "hapi-verify-64"
engine_id = "postgresql/18"
region = "us-iad"
type = "g6-standard-1"
cluster_size = 1
allow_list = ["10.64.0.0/24"]
engine_config_pg_password_encryption = "scram-sha-256"
private_network = {
vpc_id = linode_vpc.v.id
subnet_id = linode_vpc_subnet.s.id
public_access = false
}
}
resource "linode_instance" "probe" {
label = "hapi-verify-64"
region = "us-iad"
type = "g6-nanode-1"
image = "linode/debian13"
authorized_keys = [chomp(file("${path.module}/id_ed25519.pub"))]
linode_interfaces {
firewall_id = linode_firewall.fw.id
public {
ipv4 {
addresses {
address = "auto"
primary = true
}
}
}
default_route {
ipv4 = true
ipv6 = true
}
}
linode_interfaces {
firewall_id = linode_firewall.fw.id
vpc { subnet_id = linode_vpc_subnet.s.id }
}
}
output "probe_ip" { value = linode_instance.probe.ip_address }
output "db_host" { value = linode_database_postgresql_v2.db.host_primary }
output "db_port" { value = linode_database_postgresql_v2.db.port }
resource "linode_firewall" "fw" {
label = "hapi-verify-64"
inbound_policy = "DROP"
outbound_policy = "ACCEPT"
inbound {
label = "ssh"
action = "ACCEPT"
protocol = "TCP"
ports = "22"
ipv4 = ["0.0.0.0/0"]
}
}