Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Terraform module which creates ELB resources on AWS

License

NotificationsYou must be signed in to change notification settings

opensource-terraform-modules/terraform-aws-elb

 
 

Repository files navigation

Terraform module which creates Classic Load Balancer (also called ELB) resources on AWS.

Usage

module"elb_http" {source="terraform-aws-modules/elb/aws"version="~> 2.0"name="elb-example"subnets=["subnet-12345678","subnet-87654321"]security_groups=["sg-12345678"]internal=falselistener=[    {      instance_port=80      instance_protocol="HTTP"      lb_port=80      lb_protocol="HTTP"    },    {      instance_port=8080      instance_protocol="http"      lb_port=8080      lb_protocol="http"      ssl_certificate_id="arn:aws:acm:eu-west-1:235367859451:certificate/6c270328-2cd5-4b2d-8dfd-ae8d0004ad31"    },  ]health_check={    target="HTTP:80/"    interval=30    healthy_threshold=2    unhealthy_threshold=2    timeout=5  }access_logs={    bucket="my-access-logs-bucket"  }// ELB attachmentsnumber_of_instances=2instances=["i-06ff41a77dfb5349d","i-4906ff41a77dfb53d"]tags={    Owner="user"    Environment="dev"  }}

Examples

Note about SSL

Requirements

NameVersion
terraform>= 0.12.26
aws>= 2.20

Providers

No providers.

Modules

NameSourceVersion
elb./modules/elbn/a
elb_attachment./modules/elb_attachmentn/a

Resources

No resources.

Inputs

NameDescriptionTypeDefaultRequired
access_logsAn access logs blockmap(string){}no
connection_drainingBoolean to enable connection drainingboolfalseno
connection_draining_timeoutThe time in seconds to allow for connections to drainnumber300no
create_elbCreate the elb or notbooltrueno
cross_zone_load_balancingEnable cross-zone load balancingbooltrueno
health_checkA health check blockmap(string)n/ayes
idle_timeoutThe time in seconds that the connection is allowed to be idlenumber60no
instancesList of instances ID to place in the ELB poollist(string)[]no
internalIf true, ELB will be an internal ELBboolfalseno
listenerA list of listener blockslist(map(string))n/ayes
nameThe name of the ELBstringnullno
name_prefixThe prefix name of the ELBstringnullno
number_of_instancesNumber of instances to attach to ELBnumber0no
security_groupsA list of security group IDs to assign to the ELBlist(string)n/ayes
subnetsA list of subnet IDs to attach to the ELBlist(string)n/ayes
tagsA mapping of tags to assign to the resourcemap(string){}no

Outputs

NameDescription
elb_arnThe ARN of the ELB
elb_dns_nameThe DNS name of the ELB
elb_idThe name of the ELB
elb_instancesThe list of instances in the ELB
elb_nameThe name of the ELB
elb_source_security_group_idThe ID of the security group that you can use as part of your inbound rules for your load balancer's back-end application instances
elb_zone_idThe canonical hosted zone ID of the ELB (to be used in a Route 53 Alias record)

Authors

Module is maintained byAnton Babenko with help fromthese awesome contributors.

License

Apache 2 Licensed. SeeLICENSE for full details.

About

Terraform module which creates ELB resources on AWS

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • HCL100.0%

[8]ページ先頭

©2009-2025 Movatter.jp