An argument named "protocol" is not expected here

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

Do you have a file in this folder where you declare all the parameters of the module?

The module “targetgroup-rimu” {} stanza in main.tf is calling a module and setting some parameters, these parameters need to be defined in the module, else the reference call will fail. https://www.terraform.io/docs/modules/index.html

thanks that fixed it