{"id":20195002,"url":"https://github.com/mich0232/packer-nginx-lb-aws","last_synced_at":"2026-03-06T03:33:02.410Z","repository":{"id":154750524,"uuid":"604812244","full_name":"Mich0232/packer-nginx-lb-aws","owner":"Mich0232","description":"Packer template to build AWS AMI serving as low-cost NGINX Load Balancer","archived":false,"fork":false,"pushed_at":"2023-02-21T20:58:48.000Z","size":7,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-12-03T17:19:50.579Z","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/Mich0232.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":"2023-02-21T20:58:29.000Z","updated_at":"2023-02-21T20:58:54.000Z","dependencies_parsed_at":null,"dependency_job_id":"b0c5c32c-c301-4420-8c46-bb2a34d26ae5","html_url":"https://github.com/Mich0232/packer-nginx-lb-aws","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Mich0232/packer-nginx-lb-aws","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mich0232%2Fpacker-nginx-lb-aws","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mich0232%2Fpacker-nginx-lb-aws/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mich0232%2Fpacker-nginx-lb-aws/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mich0232%2Fpacker-nginx-lb-aws/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Mich0232","download_url":"https://codeload.github.com/Mich0232/packer-nginx-lb-aws/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mich0232%2Fpacker-nginx-lb-aws/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30160902,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-05T22:39:40.138Z","status":"online","status_checked_at":"2026-03-06T02:00:08.268Z","response_time":250,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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-14T04:15:18.595Z","updated_at":"2026-03-06T03:33:02.377Z","avatar_url":"https://github.com/Mich0232.png","language":"HCL","funding_links":[],"categories":[],"sub_categories":[],"readme":"# NGINX Load Balancer for AWS [packer]\n\nThis repo cotains configuration for creating custom AMI using the HashiCorp Packer tool.\nCustom AMI will contain NGINX service serving as a load balancer.\n\n\n## Requirements\n\n`packer` - [How to install Packer](https://developer.hashicorp.com/packer/downloads)\n\n\n## Building\n\n```shell\ncd src \u0026\u0026 packer build -var-file=variables.pkr.hcl nginx_lb.pkr.hcl \n```\n[How to install NGINX dynamic module](https://www.youtube.com/watch?v=AsTDPRnBayI)\n\n## Target group API\n\n`API` - [ngx_dynamic_upstream](https://github.com/cubicdaiya/ngx_dynamic_upstream.git)\n\n### Add server to TG\n\n```shell\ncurl \"http://127.0.0.1:6000/dynamic?upstream=zone_for_backends\u0026add=\u0026server=127.0.0.1:6004\"\n```\n\n### Remove server from TG\n\n```shell\ncurl \"http://127.0.0.1:6000/dynamic?upstream=zone_for_backends\u0026remove=\u0026server=127.0.0.1:6003\"\n```\n\n## Lower costs \n\nUsing AWS-managed load balancers we cannot select any tier or size of our instance, combining that with no Reserved Instances or Savings Plan features, Application Load Balancers start at ~20 USD per month.  \nELB can be responsible for large % of your costs, especially in very small applications. With NGINX LB you're paying only for the EC2 instance, what gives you ability to better manage your costs.\n\n## Features\n\n - Logging - TBD\n - Health Checks - TBD\n - Instance registration/deregistration - TDB\n \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmich0232%2Fpacker-nginx-lb-aws","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmich0232%2Fpacker-nginx-lb-aws","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmich0232%2Fpacker-nginx-lb-aws/lists"}