{"id":13505640,"url":"https://github.com/terraform-aws-modules/terraform-aws-elb","last_synced_at":"2025-05-16T02:08:32.943Z","repository":{"id":25231833,"uuid":"103509519","full_name":"terraform-aws-modules/terraform-aws-elb","owner":"terraform-aws-modules","description":"Terraform module to create AWS ELB resources 🇺🇦","archived":false,"fork":false,"pushed_at":"2025-03-29T23:07:40.000Z","size":93,"stargazers_count":148,"open_issues_count":0,"forks_count":259,"subscribers_count":9,"default_branch":"master","last_synced_at":"2025-04-08T12:12:23.900Z","etag":null,"topics":["aws","aws-elb","elb","terraform-module"],"latest_commit_sha":null,"homepage":"https://registry.terraform.io/modules/terraform-aws-modules/elb/aws","language":"HCL","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/terraform-aws-modules.png","metadata":{"funding":{"github":["antonbabenko"],"custom":"https://www.paypal.me/antonbabenko"},"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","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":"2017-09-14T08:51:01.000Z","updated_at":"2025-04-04T04:44:06.000Z","dependencies_parsed_at":"2024-10-13T05:41:08.646Z","dependency_job_id":null,"html_url":"https://github.com/terraform-aws-modules/terraform-aws-elb","commit_stats":{"total_commits":50,"total_committers":10,"mean_commits":5.0,"dds":0.54,"last_synced_commit":"13bcb3a47daae86b1fe6e359e3502f1a0e0b3379"},"previous_names":[],"tags_count":19,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/terraform-aws-modules%2Fterraform-aws-elb","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/terraform-aws-modules%2Fterraform-aws-elb/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/terraform-aws-modules%2Fterraform-aws-elb/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/terraform-aws-modules%2Fterraform-aws-elb/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/terraform-aws-modules","download_url":"https://codeload.github.com/terraform-aws-modules/terraform-aws-elb/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254453655,"owners_count":22073617,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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","aws-elb","elb","terraform-module"],"created_at":"2024-08-01T00:01:10.965Z","updated_at":"2025-05-16T02:08:32.914Z","avatar_url":"https://github.com/terraform-aws-modules.png","language":"HCL","funding_links":["https://github.com/sponsors/antonbabenko","https://www.paypal.me/antonbabenko"],"categories":["Community Modules"],"sub_categories":["Miscellaneous"],"readme":"# AWS Elastic Load Balancer (ELB) Terraform module\n\nTerraform module which creates Classic Load Balancer (also called ELB) resources on AWS.\n\n## Usage\n\n```hcl\nmodule \"elb_http\" {\n  source  = \"terraform-aws-modules/elb/aws\"\n\n  name = \"elb-example\"\n\n  subnets         = [\"subnet-12345678\", \"subnet-87654321\"]\n  security_groups = [\"sg-12345678\"]\n  internal        = false\n\n  listener = [\n    {\n      instance_port     = 80\n      instance_protocol = \"HTTP\"\n      lb_port           = 80\n      lb_protocol       = \"HTTP\"\n    },\n    {\n      instance_port     = 8080\n      instance_protocol = \"http\"\n      lb_port           = 8080\n      lb_protocol       = \"http\"\n      ssl_certificate_id = \"arn:aws:acm:eu-west-1:235367859451:certificate/6c270328-2cd5-4b2d-8dfd-ae8d0004ad31\"\n    },\n  ]\n\n  health_check = {\n    target              = \"HTTP:80/\"\n    interval            = 30\n    healthy_threshold   = 2\n    unhealthy_threshold = 2\n    timeout             = 5\n  }\n\n  access_logs = {\n    bucket = \"my-access-logs-bucket\"\n  }\n\n  // ELB attachments\n  number_of_instances = 2\n  instances           = [\"i-06ff41a77dfb5349d\", \"i-4906ff41a77dfb53d\"]\n\n  tags = {\n    Owner       = \"user\"\n    Environment = \"dev\"\n  }\n}\n```\n\n## Examples\n\n- [Complete ELB example](https://github.com/terraform-aws-modules/terraform-aws-elb/tree/master/examples/complete)\n\n## Note about SSL\n\n- Valid SSL certificate has to be specified as `ssl_certificate_id` argument for secure listener. Use [terraform-aws-acm module](https://github.com/terraform-aws-modules/terraform-aws-acm) to create one.\n\n\u003c!-- BEGIN_TF_DOCS --\u003e\n## Requirements\n\n| Name | Version |\n|------|---------|\n| \u003ca name=\"requirement_terraform\"\u003e\u003c/a\u003e [terraform](#requirement\\_terraform) | \u003e= 1.0 |\n\n## Providers\n\nNo providers.\n\n## Modules\n\n| Name | Source | Version |\n|------|--------|---------|\n| \u003ca name=\"module_elb\"\u003e\u003c/a\u003e [elb](#module\\_elb) | ./modules/elb | n/a |\n| \u003ca name=\"module_elb_attachment\"\u003e\u003c/a\u003e [elb\\_attachment](#module\\_elb\\_attachment) | ./modules/elb_attachment | n/a |\n\n## Resources\n\nNo resources.\n\n## Inputs\n\n| Name | Description | Type | Default | Required |\n|------|-------------|------|---------|:--------:|\n| \u003ca name=\"input_access_logs\"\u003e\u003c/a\u003e [access\\_logs](#input\\_access\\_logs) | An access logs block | `map(string)` | `{}` | no |\n| \u003ca name=\"input_connection_draining\"\u003e\u003c/a\u003e [connection\\_draining](#input\\_connection\\_draining) | Boolean to enable connection draining | `bool` | `false` | no |\n| \u003ca name=\"input_connection_draining_timeout\"\u003e\u003c/a\u003e [connection\\_draining\\_timeout](#input\\_connection\\_draining\\_timeout) | The time in seconds to allow for connections to drain | `number` | `300` | no |\n| \u003ca name=\"input_create_elb\"\u003e\u003c/a\u003e [create\\_elb](#input\\_create\\_elb) | Create the elb or not | `bool` | `true` | no |\n| \u003ca name=\"input_cross_zone_load_balancing\"\u003e\u003c/a\u003e [cross\\_zone\\_load\\_balancing](#input\\_cross\\_zone\\_load\\_balancing) | Enable cross-zone load balancing | `bool` | `true` | no |\n| \u003ca name=\"input_health_check\"\u003e\u003c/a\u003e [health\\_check](#input\\_health\\_check) | A health check block | `map(string)` | n/a | yes |\n| \u003ca name=\"input_idle_timeout\"\u003e\u003c/a\u003e [idle\\_timeout](#input\\_idle\\_timeout) | The time in seconds that the connection is allowed to be idle | `number` | `60` | no |\n| \u003ca name=\"input_instances\"\u003e\u003c/a\u003e [instances](#input\\_instances) | List of instances ID to place in the ELB pool | `list(string)` | `[]` | no |\n| \u003ca name=\"input_internal\"\u003e\u003c/a\u003e [internal](#input\\_internal) | If true, ELB will be an internal ELB | `bool` | `false` | no |\n| \u003ca name=\"input_listener\"\u003e\u003c/a\u003e [listener](#input\\_listener) | A list of listener blocks | `list(map(string))` | n/a | yes |\n| \u003ca name=\"input_name\"\u003e\u003c/a\u003e [name](#input\\_name) | The name of the ELB | `string` | `null` | no |\n| \u003ca name=\"input_name_prefix\"\u003e\u003c/a\u003e [name\\_prefix](#input\\_name\\_prefix) | The prefix name of the ELB | `string` | `null` | no |\n| \u003ca name=\"input_number_of_instances\"\u003e\u003c/a\u003e [number\\_of\\_instances](#input\\_number\\_of\\_instances) | Number of instances to attach to ELB | `number` | `0` | no |\n| \u003ca name=\"input_security_groups\"\u003e\u003c/a\u003e [security\\_groups](#input\\_security\\_groups) | A list of security group IDs to assign to the ELB | `list(string)` | n/a | yes |\n| \u003ca name=\"input_subnets\"\u003e\u003c/a\u003e [subnets](#input\\_subnets) | A list of subnet IDs to attach to the ELB | `list(string)` | n/a | yes |\n| \u003ca name=\"input_tags\"\u003e\u003c/a\u003e [tags](#input\\_tags) | A mapping of tags to assign to the resource | `map(string)` | `{}` | no |\n\n## Outputs\n\n| Name | Description |\n|------|-------------|\n| \u003ca name=\"output_elb_arn\"\u003e\u003c/a\u003e [elb\\_arn](#output\\_elb\\_arn) | The ARN of the ELB |\n| \u003ca name=\"output_elb_dns_name\"\u003e\u003c/a\u003e [elb\\_dns\\_name](#output\\_elb\\_dns\\_name) | The DNS name of the ELB |\n| \u003ca name=\"output_elb_id\"\u003e\u003c/a\u003e [elb\\_id](#output\\_elb\\_id) | The name of the ELB |\n| \u003ca name=\"output_elb_instances\"\u003e\u003c/a\u003e [elb\\_instances](#output\\_elb\\_instances) | The list of instances in the ELB |\n| \u003ca name=\"output_elb_name\"\u003e\u003c/a\u003e [elb\\_name](#output\\_elb\\_name) | The name of the ELB |\n| \u003ca name=\"output_elb_source_security_group_id\"\u003e\u003c/a\u003e [elb\\_source\\_security\\_group\\_id](#output\\_elb\\_source\\_security\\_group\\_id) | The ID of the security group that you can use as part of your inbound rules for your load balancer's back-end application instances |\n| \u003ca name=\"output_elb_zone_id\"\u003e\u003c/a\u003e [elb\\_zone\\_id](#output\\_elb\\_zone\\_id) | The canonical hosted zone ID of the ELB (to be used in a Route 53 Alias record) |\n\u003c!-- END_TF_DOCS --\u003e\n\n## Authors\n\nModule is maintained by [Anton Babenko](https://github.com/antonbabenko) with help from [these awesome contributors](https://github.com/terraform-aws-modules/terraform-aws-elb/graphs/contributors).\n\n## License\n\nApache 2 Licensed. See [LICENSE](https://github.com/terraform-aws-modules/terraform-aws-elb/tree/master/LICENSE) for full details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fterraform-aws-modules%2Fterraform-aws-elb","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fterraform-aws-modules%2Fterraform-aws-elb","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fterraform-aws-modules%2Fterraform-aws-elb/lists"}