terraform version v0.12.24 fresh install not upgrade
provider.aws v2.58.0
root module
targetgroup.tf
resource "aws_alb_target_group" "go" {
name = var.name
vpc_id = data.aws_vpc.allvpcs.id
port = "443"
protocol = "HTTPS"
target_type = "instance"
health_check {
path = "/goonline_https.html"
port = "443"
protocol = "HTTPS"
healthy_threshold = 2
unhealthy_threshold = 4
interval = 30
timeout = 5
}
tags = {
Name = var.name
}
}
Module
main.tf
provider "aws" {
region = var.aws_region
}
module "targetgroup-rimu" {
source = "../../../aws/ec2/ALB/TargetGroups"
name = var.name
vpc_id = data.aws_vpc.allvpcs.id
port = "443"
protocol = "HTTPS"
target_type = "instance"
health_check {
path = "/goonline_https.html"
port = "443"
protocol = "HTTPS"
healthy_threshold = 2
unhealthy_threshold = 4
interval = 30
timeout = 5
}
tags = {
Name = var.name
}
}
I get an error for all arguments except name
Unsupported argument
An argument named "argument name" is not expected here