{"id":18561572,"url":"https://github.com/sarcasticadmin/terraform-poudriere","last_synced_at":"2026-04-26T22:31:20.058Z","repository":{"id":87532418,"uuid":"126576084","full_name":"sarcasticadmin/terraform-poudriere","owner":"sarcasticadmin","description":"Using terraform and poudriere to build and host pkgng repo in s3","archived":false,"fork":false,"pushed_at":"2020-04-16T19:58:56.000Z","size":29,"stargazers_count":4,"open_issues_count":2,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-05-15T16:52:02.928Z","etag":null,"topics":["aws","freebsd","pkgng","portstree","poudriere","s3","terraform"],"latest_commit_sha":null,"homepage":"","language":"HCL","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-2-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sarcasticadmin.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","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":"2018-03-24T07:28:57.000Z","updated_at":"2023-01-06T23:19:50.000Z","dependencies_parsed_at":"2023-03-21T19:01:26.764Z","dependency_job_id":null,"html_url":"https://github.com/sarcasticadmin/terraform-poudriere","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/sarcasticadmin/terraform-poudriere","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sarcasticadmin%2Fterraform-poudriere","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sarcasticadmin%2Fterraform-poudriere/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sarcasticadmin%2Fterraform-poudriere/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sarcasticadmin%2Fterraform-poudriere/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sarcasticadmin","download_url":"https://codeload.github.com/sarcasticadmin/terraform-poudriere/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sarcasticadmin%2Fterraform-poudriere/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32315711,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-26T21:09:39.134Z","status":"ssl_error","status_checked_at":"2026-04-26T21:09:21.240Z","response_time":129,"last_error":"SSL_read: 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":["aws","freebsd","pkgng","portstree","poudriere","s3","terraform"],"created_at":"2024-11-06T22:07:17.858Z","updated_at":"2026-04-26T22:31:20.041Z","avatar_url":"https://github.com/sarcasticadmin.png","language":"HCL","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Terraform Poudriere\n\n[![CircleCI](https://circleci.com/gh/sarcasticadmin/terraform-poudriere/tree/master.svg?style=shield)](https://circleci.com/gh/sarcasticadmin/terraform-poudriere/tree/master)\n\nBuild your own `pkgng` repo and host it in AWS! This terraform module allows you to build pkgs on the fly\nand the host the repo out of `s3`. Currently it will turn the `poudriere` autoscaling group to 0 after it\nis done building.\n\u003e NOTE: Running this module in AWS will result in charges. Please be aware.\n\n## Prereqs\n### Generate signing key\nRun the following outside and push it to s3 bucket\n```\nopenssl genrsa -out ./poudriere.key 4096\nopenssl rsa -in ./poudriere.key -pubout -out ./poudriere.pub\naws s3 cp poudriere.key s3://\u003csecure_bucket\u003e/path/poudriere.key\n```\n\n## Config\n[Example](https://github.com/sarcasticadmin/terraform-poudriere/tree/master/examples/simple/) of using the module:\n```\nmodule \"poudriere\" {\n  source         = \"./terraform-poudriere\"\n  aws_region     = \"${var.aws_region}\"\n  vpc_id         = \"${aws_vpc.default.id}\"\n  aws_subnet_id  = \"${aws_subnet.public.id}\"\n  ssh_key_name   = \"secret_ssh_key\"\n  pkg_s3_bucket  = \"pkgs.example.com\"\n  signing_s3_key = \"12345678-secure/poudriere/poudriere.key\"\n}\n```\n\n## AMI\nUse the following `awscli` command to look up specific AMIs for\n`FreeBSD 11.1` in region `us-east-1`:\n```\naws ec2 describe-images --owners 782442783595 \\\n\t\t\t--filters \"Name=name,Values='FreeBSD 11.1-STABLE-amd64*'\" \"Name=root-device-type,Values=ebs\" \\\n\t\t\t--query 'sort_by(Images, \u0026CreationDate)[].[ImageId, Name]'\n```\n\u003e NOTE: the account id 782442783595 is the account thats hosting the FreeBSD\n\u003e offical images.\n\n## Notes\n### Troubleshooting\nFirst check the boostrap.log on the `ec2` instance:\n```\nless /var/log/bootstrap.log\n```\n\nCheck a failed build check compile flags in:\n```\nless /data/logs/bulk/\n```\n\n### Unsupport System\n\nIf your build fails and you notice the in build logs a similar error:\n\n```\n--End resource limits--\n=======================\u003cphase: check-sanity   \u003e============================\n/!\\ ERROR: /!\\\n\nPorts Collection support for your FreeBSD version has ended, and no ports are\nguaranteed to build on this system. Please upgrade to a supported release.\n\nNo support will be provided if you silence this message by defining\nALLOW_UNSUPPORTED_SYSTEM.\n\n*** Error code 1\n\nStop.\n```\n\nThis is due to the version of FreeBSD being built is no longer supported, you need to add the following to\nyour `make.conf`:\n\n```\nALLOW_UNSUPPORTED_SYSTEM=yes\n```\n\nPlease consider updating the version of the AMI and the jail you are building against\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsarcasticadmin%2Fterraform-poudriere","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsarcasticadmin%2Fterraform-poudriere","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsarcasticadmin%2Fterraform-poudriere/lists"}