Skip to content

Latest commit

 

History

History
101 lines (97 loc) · 11.8 KB

File metadata and controls

101 lines (97 loc) · 11.8 KB

Inputs

Name Description Type Default Required
access_logs Map containing access logging configuration for load balancer. map(string) {} no
allowed_ip List of allowed ip. list(any) [] no
allowed_ports List of allowed ingress ports list(any) [] no
cidr_blocks equal to 0. The supported values are defined in the IpProtocol argument on the IpPermission API reference list(string)
[
"0.0.0.0/0"
]
no
clb_enable If true, create clb. bool false no
connection_draining TBoolean to enable connection draining. Default: false. bool false no
connection_draining_timeout The time after which connection draining is aborted in seconds. number 300 no
connection_logs Connection logs config: bucket (required), prefix (optional), enabled (optional, default true). map(string) {} no
desync_mitigation_mode Determines how the load balancer handles requests that might pose a security risk to an application due to HTTP desync. string "defensive" no
egress_protocol equal to 0. The supported values are defined in the IpProtocol argument on the IpPermission API reference number -1 no
egress_rule Enable to create egress rule bool true no
enable If true, create alb. bool false no
enable_cross_zone_load_balancing Indicates whether cross zone load balancing should be enabled in application load balancers. bool true no
enable_deletion_protection If true, deletion of the load balancer will be disabled via the AWS API. This will prevent Terraform from deleting the load balancer. Defaults to false. bool false no
enable_http2 Indicates whether HTTP/2 is enabled in application load balancers. bool true no
enable_security_group Enable default Security Group with only Egress traffic allowed. bool true no
enable_tls_version_and_cipher_suite_headers Indicates whether the two headers (x-amzn-tls-version and x-amzn-tls-cipher-suite), which contain information about the negotiated TLS version and cipher suite, are added to the client request before sending it to the target. bool false no
enable_waf_fail_open Indicates whether to route requests to targets if lb fails to forward the request to AWS WAF bool false no
enable_xff_client_port Indicates whether the X-Forwarded-For header should preserve the source port that the client used to connect to the load balancer in application load balancers. bool true no
enable_zonal_shift Enable zonal shift for automatic AZ failover (provider >= 5.53). bool false no
environment Environment (e.g. prod, dev, staging). string "test" no
extra_ssl_certs A list of maps describing any extra SSL certificates to apply to the HTTPS listeners. Required key/values: certificate_arn, https_listener_index (the index of the listener within https_listeners which the cert applies toward). list(map(string)) [] no
from_port (Required) Start port (or ICMP type number if protocol is icmp or icmpv6). number 0 no
health_check_healthy_threshold The number of successful health checks before an instance is put into service. number 10 no
health_check_interval The time between health check attempts in seconds. number 30 no
health_check_target The target to use for health checks. string "TCP:80" no
health_check_timeout The time after which a health check is considered failed in seconds. number 5 no
health_check_unhealthy_threshold The number of failed health checks before an instance is taken out of service. number 2 no
http_enabled A boolean flag to enable/disable HTTP listener. bool true no
http_listener_type The type of routing action. Valid values are forward, redirect, fixed-response, authenticate-cognito and authenticate-oidc. string "redirect" no
http_port The port on which the load balancer is listening. like 80 or 443. number 80 no
http_tcp_listener_rules A list of maps describing the Listener Rules for this ALB. Required key/values: actions, conditions. Optional key/values: priority, http_tcp_listener_index (default to http_tcp_listeners[count.index]) any [] no
http_tcp_listeners A list of maps describing the HTTP listeners or TCP ports for this ALB. Required key/values: port, protocol. Optional key/values: target_group_index (defaults to http_tcp_listeners[count.index]) any [] no
https_enabled A boolean flag to enable/disable HTTPS listener. bool true no
https_listener_rules A list of maps describing the Listener Rules for this ALB. Required key/values: actions, conditions. Optional key/values: priority, https_listener_index (default to https_listeners[count.index]) any [] no
https_listeners A list of maps describing the HTTPS listeners for this ALB. Required key/values: port, certificate_arn. Optional key/values: ssl_policy (defaults to ELBSecurityPolicy-2016-08), target_group_index (defaults to 0) list(map(string)) [] no
https_port The port on which the load balancer is listening. like 80 or 443. number 443 no
idle_timeout The time in seconds that the connection is allowed to be idle. number 60 no
instance_count The count of instances. number 0 no
internal If true, the LB will be internal. string "" no
ip_address_type The type of IP addresses used by the subnets for your load balancer. The possible values are ipv4 and dualstack. string "ipv4" no
ipv6_cidr_blocks Enable to create egress rule list(string)
[
"::/0"
]
no
is_external enable to udated existing security Group bool false no
label_order Label order, e.g. name,application. list(any)
[
"name",
"environment"
]
no
listener_certificate_arn The ARN of the SSL server certificate. Exactly one certificate is required if the protocol is HTTPS. string "" no
listener_https_fixed_response Have the HTTPS listener return a fixed response for the default action.
object({
content_type = string
message_body = string
status_code = string
})
null no
listener_protocol The protocol for connections from clients to the load balancer. Valid values are TCP, HTTP and HTTPS. Defaults to HTTP. string "HTTPS" no
listener_type The type of routing action. Valid values are forward, redirect, fixed-response, authenticate-cognito and authenticate-oidc. string "forward" no
listeners A list of listener configurations for the ELB.
list(object({
lb_port : number
lb_protocol : string
instance_port : number
instance_protocol : string
ssl_certificate_id : string
}))
[] no
load_balancer_create_timeout Timeout value when creating the ALB. string "10m" no
load_balancer_delete_timeout Timeout value when deleting the ALB. string "10m" no
load_balancer_type The type of load balancer to create. Possible values are application or network. The default value is application. string "" no
load_balancer_update_timeout Timeout value when updating the ALB. string "10m" no
managedby ManagedBy, eg 'CloudDrove'. string "hello@clouddrove.com" no
mutual_authentication mTLS config for HTTPS listener. mode: off | passthrough | verify.
object({
mode = string
trust_store_arn = optional(string)
ignore_client_certificate_expiry = optional(bool)
advertise_trust_store_ca_names = optional(string)
})
null no
name Name (e.g. app or cluster). string "" no
preserve_host_header Indicates whether Host header should be preserve and forward to targets without any change. Defaults to false. bool false no
protocol The protocol. If not icmp, tcp, udp, or all use the. string "tcp" no
repository Terraform current module repo string "https://github.com/clouddrove/terraform-aws-alb" no
sg_description The security group description. string "Instance default security group (only egress access is allowed)." no
sg_egress_description Description of the egress and ingress rule string "Description of the rule." no
sg_egress_ipv6_description Description of the egress_ipv6 rule string "Description of the rule." no
sg_ids of the security group id. list(any) [] no
sg_ingress_description Description of the ingress rule string "Description of the ingress rule use elasticache." no
ssl_policy Name of the SSL Policy for the listener. Required if protocol is HTTPS or TLS. string "ELBSecurityPolicy-TLS-1-2-2017-01" no
status_code The HTTP redirect code. The redirect is either permanent (HTTP_301) or temporary (HTTP_302). string "HTTP_301" no
subnet_mapping A list of subnet mapping blocks describing subnets to attach to network load balancer list(map(string)) [] no
subnets A list of subnet IDs to attach to the LB. Subnets cannot be updated for Load Balancers of type network. Changing this value will for load balancers of type network will force a recreation of the resource. list(any) [] no
tags Additional tags (e.g. map(BusinessUnit,XYZ). map(string) {} no
target_group_port The port on which targets receive traffic, unless overridden when registering a specific target. string 80 no
target_groups A list of maps containing key/value pairs that define the target groups to be created. Order of these maps is important and the index of these are to be referenced in listener definitions. Required key/values: name, backend_protocol, backend_port. Optional key/values are in the target_groups_defaults variable. any [] no
target_id The ID of the target. This is the Instance ID for an instance, or the container ID for an ECS container. If the target type is ip, specify an IP address. list(any) n/a yes
to_port equal to 0. The supported values are defined in the IpProtocol argument on the IpPermission API reference number 65535 no
vpc_id The identifier of the VPC in which to create the target group. string "" no
with_target_group Create LoadBlancer without target group bool true no
xff_header_processing_mode Determines how the load balancer modifies the X-Forwarded-For header in the HTTP request before sending the request to the target. string "append" no

Outputs

Name Description
arn The ARN of the ALB.
arn_suffix The ARN suffix of the ALB.
clb_arn The ARN of the CLB.
clb_name DNS name of CLB.
clb_zone_id The ID of the zone which ALB is provisioned.
dns_name DNS name of ALB.
http_listener_arn The ARN of the HTTP listener.
https_listener_arn The ARN of the HTTPS listener.
listener_arns A list of all the listener ARNs.
main_target_group_arn The main target group ARN.
name The ARN suffix of the ALB.
security_group_arn Amazon Resource Name (ARN) of the security group
security_group_id ID of the security group
tags A mapping of tags to assign to the resource.
zone_id The ID of the zone which ALB is provisioned.