{"id":48211130,"url":"https://github.com/techservicesillinois/terraform-aws-lb","last_synced_at":"2026-04-04T18:48:34.883Z","repository":{"id":40422922,"uuid":"154729329","full_name":"techservicesillinois/terraform-aws-lb","owner":"techservicesillinois","description":"Provides an Application Load Balancer","archived":false,"fork":false,"pushed_at":"2025-03-27T21:39:53.000Z","size":22,"stargazers_count":2,"open_issues_count":4,"forks_count":6,"subscribers_count":10,"default_branch":"main","last_synced_at":"2025-03-27T22:30:16.239Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Gherkin","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/techservicesillinois.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-10-25T19:54:44.000Z","updated_at":"2025-03-27T21:34:09.000Z","dependencies_parsed_at":"2023-01-23T19:31:20.401Z","dependency_job_id":null,"html_url":"https://github.com/techservicesillinois/terraform-aws-lb","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"purl":"pkg:github/techservicesillinois/terraform-aws-lb","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/techservicesillinois%2Fterraform-aws-lb","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/techservicesillinois%2Fterraform-aws-lb/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/techservicesillinois%2Fterraform-aws-lb/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/techservicesillinois%2Fterraform-aws-lb/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/techservicesillinois","download_url":"https://codeload.github.com/techservicesillinois/terraform-aws-lb/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/techservicesillinois%2Fterraform-aws-lb/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31409470,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-04T10:20:44.708Z","status":"ssl_error","status_checked_at":"2026-04-04T10:20:06.846Z","response_time":60,"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":[],"created_at":"2026-04-04T18:48:34.294Z","updated_at":"2026-04-04T18:48:34.873Z","avatar_url":"https://github.com/techservicesillinois.png","language":"Gherkin","funding_links":[],"categories":[],"sub_categories":[],"readme":"# lb\n\n[![Terraform actions status](https://github.com/techservicesillinois/terraform-aws-lb/workflows/terraform/badge.svg)](https://github.com/techservicesillinois/terraform-aws-lb/actions)\n\nProvides a load balancer, which may be either an application or\nnetwork load balancers.\n\nExample Usage\n-----------------\n\n### Public load balancer\n```hcl\nmodule \"lb_name\" {\n  source = \"git@github.com:techservicesillinois/terraform-aws-lb\"\n\n  name        = \"lb_name\"\n  subnet_type = \"public\"\n  vpc         = \"vpc_name\"\n\n  alias = [ \n    {\n      hostname = \"mylb\"\n      domain   = \"example.com\"\n    },\n    {\n      hostname = \"lb\"\n      domain   = \"alternate.com\"\n    }\n  ]\n\n  ports = {\n    443 = {\n      protocol = \"HTTPS\" \n    },\n\n    80 = {\n      protocol = \"HTTP\" \n    }    \n  }\n  \n  certificate_arn  = \"certificate_arn\"\n  ssl_policy       = \"ssl_policy_name\" \n}\n```\n\n### Private load balancer\n```hcl\nmodule \"lb_name\" {\n  source = \"git@github.com:techservicesillinois/terraform-aws-lb\"\n\n  name        = \"lb_name\"\n  internal    = true\n  subnet_type = \"nat\"\n  vpc         = \"vpc_name\"\n\n  alias = [\n    {\n      hostname = \"mylb\"\n      domain   = \"example.com\"\n    }\n  ]\n\n  ports = [\n    {\n      port             = \"port_number\"\n      protocol         = \"protocol_name \n      certificate_arn  = \"certificate_arn\"\n      ssl_policy       = \"ssl_policy_name\"\n    }\n  ]  \n}\n```\n\n\nArgument Reference\n-----------------\n\nThe following arguments are supported:\n\n* `name` - (Required) The name of the LB. This name must be unique\nwithin your AWS account, can have a maximum of 32 characters, must\ncontain only alphanumeric characters or hyphens, and must not begin\nor end with a hyphen.\n\n* `vpc` - (Required) The name of the virtual private cloud to be\nassociated with the load balancer.\n\n* `subnet_type` - (Required) Subnet type (e.g., 'campus', 'private', 'public') for resource placement.\n\n* `ports` - (Required) A list of [Ports](#ports) blocks. Ports\ndocumented below.\n\n* `internal` - (Optional) If true, the LB will be internal.\n\n* `security_groups` - (Optional) A list of security group names to\nassign to the load balancer.\n\n* `access_logs` - (Optional) An [Access Logs](#access_logs) block.\nAccess Logs documented below.\n\n* `idle_timeout` - (Optional) The time in seconds that the connection\nis allowed to be idle. Default: 60.\n\n* `enable_deletion_protection` - (Optional) If true, deletion of\nthe load balancer will be disabled via the AWS API. This will prevent\nTerraform from deleting the load balancer. Defaults to false.\n\n* `enable_http2` - (Optional) Indicates whether HTTP/2 is enabled\nin application load balancers. Defaults to true.\n\n* `ip_address_type` - (Optional) The type of IP addresses used by\nthe subnets for your load balancer. The possible values are ipv4\nand dualstack.\n\n* `tags` - (Optional) A mapping of tags to assign to the resource.\n\n* `alias` - (Optional) A list of [Alias](#alias) blocks. Alias\ndocumented below.\n\n`access_logs`\n-------\n\nAccess Logs (access_logs) supports the following:\n\n* `bucket` - (Required) The S3 bucket name to store the logs in.\n\n* `prefix` - (Optional) The S3 bucket prefix. Logs are stored in\nthe root if not configured.\n\n* `enabled` - (Optional) Boolean to enable / disable access_logs.\nDefaults to false, even when bucket is specified.\n\n`alias`\n-------\n\nAlias supports the following:\n\n* `domain` - (Required) The domain name of the hosted zone to contain\nthis record.\n\n* `hostname` - (Required) The name of the route53 record.\n\n`ports`\n-------\n\nPorts supports the following:\n\n* `port` - (Required) A port on which the load balancer is listening\n\n* `protocol` - (Required) The protocol for connections from clients\nto the load balancer. Valid values are TCP, HTTP and HTTPS.\n\n* `ssl_policy` - (Optional) The name of the SSL Policy for the\nlistener. Required if protocol is HTTPS. Defaults to top level\n`ssl_policy` value.\n\n* `certificate_arn` - (Optional) The ARN of the default SSL server\ncertificate. Exactly one certificate is required if the protocol\nis HTTPS. For adding additional SSL certificates, see the\n[aws_lb_listener_certificate resource](https://www.terraform.io/docs/providers/aws/r/lb_listener_certificate.html).\nDefaults to top level `certificate_arn`.\n\nAttributes Reference\n--------------------\n\nThe following attributes are exported:\n\n* `id` - The ARN of the load balancer (matches `arn`).\n\n* `arn` - The ARN of the load balancer (matches `id`).\n\n* `arn_suffix` - The ARN suffix for use with CloudWatch Metrics.\n\n* `dns_name` - The DNS name of the load balancer.\n\n* `zone_id` - The canonical hosted zone ID of the load balancer (to\nbe used in a Route 53 Alias record).\n\n* `listener_arns` - The ARNs of the listeners.\n\n* `security_group_id` - The ID of the security group rule.\n\n* `target_group_arn` - The ARN of the Target Group.\n\n* `fqdn` - A list of FQDNs built using the corresponding zone\n`domain` and `hostname`.\n\nCredits\n--------------------\n\n**Nota bene** the vast majority of the verbiage on this page was\ntaken directly from the Terraform manual, and in a few cases from\nAmazon's documentation.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftechservicesillinois%2Fterraform-aws-lb","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftechservicesillinois%2Fterraform-aws-lb","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftechservicesillinois%2Fterraform-aws-lb/lists"}