{"id":20698159,"url":"https://github.com/fly-apps/rds-connector","last_synced_at":"2026-03-08T23:33:01.889Z","repository":{"id":50565130,"uuid":"323753253","full_name":"fly-apps/rds-connector","owner":"fly-apps","description":"Trivial Terraform example for a WireGuard peer to RDS","archived":false,"fork":false,"pushed_at":"2023-04-20T16:55:29.000Z","size":2,"stargazers_count":43,"open_issues_count":2,"forks_count":8,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-06-13T21:05:36.481Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"HCL","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/fly-apps.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-12-22T23:14:00.000Z","updated_at":"2024-12-08T04:29:51.000Z","dependencies_parsed_at":"2025-01-17T18:54:00.189Z","dependency_job_id":"68e98222-b62c-467e-b944-76f7e97d5666","html_url":"https://github.com/fly-apps/rds-connector","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/fly-apps/rds-connector","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fly-apps%2Frds-connector","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fly-apps%2Frds-connector/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fly-apps%2Frds-connector/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fly-apps%2Frds-connector/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fly-apps","download_url":"https://codeload.github.com/fly-apps/rds-connector/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fly-apps%2Frds-connector/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30276972,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-08T20:45:49.896Z","status":"ssl_error","status_checked_at":"2026-03-08T20:45:49.525Z","response_time":56,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-17T00:23:06.823Z","updated_at":"2026-03-08T23:33:01.873Z","avatar_url":"https://github.com/fly-apps.png","language":"HCL","funding_links":[],"categories":[],"sub_categories":[],"readme":"# A trivial Terraform example for WireGuard peering\n\nThis is potato-Terraform sufficient to create an RDS database, and connect \nit to a Fly.io 6PN network. It needs:\n\n* An AWS account (strong recommend: [aws-vault](https://github.com/99designs/aws-vault))\n\n* A password for a newly created RDS database\n\n* A WireGuard configuration generated from `flyctl wireguard create`, in\n  `wg0.conf`.\n\n* An SSH key pair (you'll need to edit the Terraform, replacing `YOUR_KEY_HERE`).\n\nIt will create:\n\n* A new VPC, numbered 172.16.0.0/16\n\n* An EC2 instance, to which SSH is allowed from the world (see below).\n\n* An RDS database called \"appdb\" with the specified password, and a security\n  group rule allowing the EC2 instance to talk to it.\n\nIt uses Terraform's `remote-exec` to provision the EC2 instance:\n\n* Installing WireGuard\n\n* Setting up the WireGuard configuration\n\n* Installing PgBouncer\n\n* Configuring PgBouncer to talk to our RDS instance.\n\nAfter running, you should have a WireGuard peer in your 6PN DNS, by\nwhichever name you gave the peer, to which you can connect Postgres\non 5432/tcp.\n\n## Important Note\n\nPart of the point of deploying like this is *not* having management dependencies\nlike SSH lying around, but an even bigger point of why I work at Fly.io is not \nhaving to be good at Terraform, so I don't have a standalone Terraform that \n\"temporarily\" allows SSH. If it were me, I'd just go in afterwards and kill the\nSSH rule with the AWS CLI. Maybe you'd create an AMI instead; there's lots of\nways to do this.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffly-apps%2Frds-connector","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffly-apps%2Frds-connector","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffly-apps%2Frds-connector/lists"}