Skip to content

Latest commit

 

History

History
188 lines (147 loc) · 3.31 KB

aws_lb.md

File metadata and controls

188 lines (147 loc) · 3.31 KB

aws_lb

back

Index

Terraform

terraform {
  required_providers {
    aws = ">= 3.35.0"
  }
}

top

Example Usage

module "aws_lb" {
  source = "./modules/aws/d/aws_lb"

  # arn - (optional) is a type of string
  arn = null
  # name - (optional) is a type of string
  name = null
  # tags - (optional) is a type of map of string
  tags = {}
}

top

Variables

variable "arn" {
  description = "(optional)"
  type        = string
  default     = null
}

variable "name" {
  description = "(optional)"
  type        = string
  default     = null
}

variable "tags" {
  description = "(optional)"
  type        = map(string)
  default     = null
}

top

Datasource

data "aws_lb" "this" {
  # arn - (optional) is a type of string
  arn = var.arn
  # name - (optional) is a type of string
  name = var.name
  # tags - (optional) is a type of map of string
  tags = var.tags
}

top

Outputs

output "access_logs" {
  description = "returns a list of object"
  value       = data.aws_lb.this.access_logs
}

output "arn" {
  description = "returns a string"
  value       = data.aws_lb.this.arn
}

output "arn_suffix" {
  description = "returns a string"
  value       = data.aws_lb.this.arn_suffix
}

output "customer_owned_ipv4_pool" {
  description = "returns a string"
  value       = data.aws_lb.this.customer_owned_ipv4_pool
}

output "dns_name" {
  description = "returns a string"
  value       = data.aws_lb.this.dns_name
}

output "drop_invalid_header_fields" {
  description = "returns a bool"
  value       = data.aws_lb.this.drop_invalid_header_fields
}

output "enable_deletion_protection" {
  description = "returns a bool"
  value       = data.aws_lb.this.enable_deletion_protection
}

output "enable_http2" {
  description = "returns a bool"
  value       = data.aws_lb.this.enable_http2
}

output "id" {
  description = "returns a string"
  value       = data.aws_lb.this.id
}

output "idle_timeout" {
  description = "returns a number"
  value       = data.aws_lb.this.idle_timeout
}

output "internal" {
  description = "returns a bool"
  value       = data.aws_lb.this.internal
}

output "ip_address_type" {
  description = "returns a string"
  value       = data.aws_lb.this.ip_address_type
}

output "load_balancer_type" {
  description = "returns a string"
  value       = data.aws_lb.this.load_balancer_type
}

output "name" {
  description = "returns a string"
  value       = data.aws_lb.this.name
}

output "security_groups" {
  description = "returns a set of string"
  value       = data.aws_lb.this.security_groups
}

output "subnet_mapping" {
  description = "returns a set of object"
  value       = data.aws_lb.this.subnet_mapping
}

output "subnets" {
  description = "returns a set of string"
  value       = data.aws_lb.this.subnets
}

output "tags" {
  description = "returns a map of string"
  value       = data.aws_lb.this.tags
}

output "vpc_id" {
  description = "returns a string"
  value       = data.aws_lb.this.vpc_id
}

output "zone_id" {
  description = "returns a string"
  value       = data.aws_lb.this.zone_id
}

output "this" {
  value = aws_lb.this
}

top