Skip to content

This repository consists of Terraform module for ALB Target Group in AWS.

Notifications You must be signed in to change notification settings

OT-CLOUD-KIT/terraform-aws-alb_target_group

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

AWS lb target group Terraform module

Opstree Solutions

Opstree Solutions

Terraform module which creates lb target group on AWS.

These types of resources are supported:

Terraform versions

Terraform 0.12.

Usage

provider "aws" {
  region = "ap-south-1"
}

module "lb_target_group" {
  source                            = "../alb_target_group"
  applicaton_name                   = "Nginx"
  applicaton_port                   = 80
  tg_target_type                    = "instance"
  tg_protocol                       = "HTTP"
  vpc_id                            = "vpc-09876xyz"
  applicaton_health_check_target    = "/login"
  instance_id                       = "i-092e93733xyz"
}
output "lb_target_group_arn" {
  description = "instance ip"
  value       = module.lb_target_group.target_group_arn
}

Tags

  • Tags are assigned to resources with name variable as prefix.
  • Additial tags can be assigned by tags variables as defined above.

Inputs

Name Description Type Default Required
applicaton_name Define the name of the application string "false" yes
applicaton_port Define the application port string "false" yes
tg_target_type You can define the type of target group string "instance" no
tg_protocol Define target group protocol string "HTTP" no
vpc_id Define vpc id string "false" yes
applicaton_health_check_target define application heath check target string "false" yes
instance_id define Instance ID sting "false" yes

Output

Name Description
lb_target_group_arn The ARN of the target group

Related Projects

Check out these related projects.

Contributors

Devesh Sharma
Devesh Sharma

About

This repository consists of Terraform module for ALB Target Group in AWS.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages