ecs-alb

cn-terraform/ecs-alb/aws

Terraform Module HCL AWS

AWS ALB Terraform Module for ECS

Install
module "ecs-alb" {
source = "cn-terraform/ecs-alb/aws"
version = "1.0.37"
}
plain text: /constructs/tfmod-cn-terraform-ecs-alb-aws/install.txt
⭐ Source on GitHub 📦 Registry page
README

AWS ALB Terraform Module Test Continuous Integration/Delivery environment on AWS ECS. ![](https://github.com/cn-terraform/terraform-aws-ecs-alb/actions?query=workflow%3Aterraform) ![](https://github.com/cn-terraform/terraform-aws-ecs-alb) ![](https://github.com/cn-terraform/terraform-aws-ecs-alb) ![](https://github.com/cn-terraform/terraform-aws-ecs-alb) ![](https://github.com/cn-terraform/terraform-aws-alb) ![](https://github.com/cn-terraform/terraform-aws-ecs-alb) Use this code as a Terraform module Check valid versions on: Github Releases: Terraform Module Registry: This terraform module creates an Application Load Balancer and security group rules in order allow traffic to it. Install pre commit hooks. Please run this command right after cloning the repository. pre-commit install For t

Inputs (44)
NameTypeDescriptionDefault
vpc_idstringID of the VPC required
name_prefixstringName prefix for resources on AWS. Max length is 15 characters. required
private_subnetslist(string)A list of private subnet IDs to attach to the LB if it is INTERNAL. required
public_subnetslist(string)A list of public subnet IDs to attach to the LB if it is NOT internal. required
https_portsmap(object({ type = optionMap containing objects to define listeners behaviour based on type field. If typ{ "default": { "listener_port": 44
http_ingress_prefix_list_idslist(string)List of prefix list IDs blocks to allowed to access the Load Balancer through HT[]
load_balancing_algorithm_typestring(Optional) Determines how the load balancer selects targets when routing request"round_robin"
target_group_health_check_matcherstringThe codes to use when checking for a successful response from a target. You can "200"
default_certificate_arnstring(Optional) The ARN of the default SSL server certificate. Required if var.https_null
additional_certificates_arn_for_https_listenerslist(any)(Optional) List of SSL server certificate ARNs for HTTPS listener. Use it if you[]
tagsmap(string)Resource tags{}
target_group_health_check_pathstringThe destination for the health check request."/"
target_group_health_check_timeoutnumber(Optional) The amount of time, in seconds, during which no response means a fail5
enable_deletion_protectionbool(Optional) If true, deletion of the load balancer will be disabled via the AWS Afalse
http_ingress_cidr_blockslist(string)List of CIDR blocks to allowed to access the Load Balancer through HTTP[ "0.0.0.0/0" ]
https_ingress_cidr_blockslist(string)List of CIDR blocks to allowed to access the Load Balancer through HTTPS[ "0.0.0.0/0" ]
target_group_health_check_intervalnumber(Optional) The approximate amount of time, in seconds, between health checks of 30
target_group_health_check_portstring(Optional) The port to use to connect with the target. Valid values are either p"traffic-port"
ssl_policystring(Optional) The name of the SSL Policy for the listener. . Required if var.https_null
enable_s3_logsbool(Optional) If true, all LoadBalancer logs will be sent to S3. If true, and log_true
block_s3_bucket_public_accessbool(Optional) If true, public access to the S3 bucket will be blocked. Ignored if true
enable_s3_bucket_server_side_encryptionbool(Optional) If true, server side encryption will be applied. Ignored if log_bucktrue
access_logs_prefixstring(Optional) if access logging to an S3 bucket, this sets a prefix in the bucket bnull
enable_http2bool(Optional) Indicates whether HTTP/2 is enabled in the load balancer. Defaults totrue
… and 4 more inputs
Outputs (29)
aws_lb_lb_arn — The ARN of the load balancer (matches id).
aws_lb_lb_arn_suffix — The ARN suffix for use with CloudWatch Metrics.
aws_lb_lb_zone_id — The canonical hosted zone ID of the load balancer (to be used in a Route 53 Alias record).
lb_http_listeners_ids — List of HTTP Listeners IDs
aws_security_group_lb_access_sg_arn — The ARN of the security group
aws_security_group_lb_access_sg_owner_id — The owner ID.
lb_http_tgs_ids — List of HTTP Target Groups IDs
lb_http_tgs_ports — List of HTTP Target Groups ports
lb_https_listeners_arns — List of HTTPS Listeners ARNs
aws_security_group_lb_access_sg_vpc_id — The VPC ID.
aws_security_group_lb_access_sg_description — The description of the security group
aws_security_group_lb_access_sg_ingress — The ingress rules.
lb_http_tgs_arns — List of HTTP Target Groups ARNs
lb_http_tgs_map_arn_port
lb_https_tgs_ids — List of HTTPS Target Groups IDs
lb_https_tgs_arns — List of HTTPS Target Groups ARNs
lb_logs_s3_bucket_id — LB Logging S3 Bucket ID
aws_lb_lb_id — The ARN of the load balancer (matches arn).
aws_security_group_lb_access_sg_name — The name of the security group
aws_security_group_lb_access_sg_egress — The egress rules.
lb_http_tgs_names — List of HTTP Target Groups Names
lb_https_tgs_names — List of HTTPS Target Groups Names
lb_https_tgs_ports — List of HTTPS Target Groups ports
lb_https_tgs_map_arn_port
lb_logs_s3_bucket_arn — LB Logging S3 Bucket ARN
lb_http_listeners_arns — List of HTTP Listeners ARNs
lb_https_listeners_ids — List of HTTPS Listeners IDs
aws_lb_lb_dns_name — The DNS name of the load balancer.
aws_security_group_lb_access_sg_id — The ID of the security group
Resources (10)
aws_lbaws_lb_listeneraws_lb_listener_certificateaws_lb_target_groupaws_security_groupaws_security_group_ruleaws_wafv2_web_acl_associationnull_resourcerandom_idrandom_string
Details
FrameworkTerraform Module
LanguageHCL
Version1.0.37
Cloud AWS
★ Stars29
Forks30
Total downloads255.1k
Inputs44
Outputs29
Resources10
Examples2
LicenseApache-2.0
Namespacecn-terraform
Updated