Skip to content

This object has no argument, nested block, or exported attribute named "region". #80

@PaarthShah

Description

@PaarthShah
│ Error: Unsupported attribute
│ 
│   on .terraform/modules/tailscale.tailscale_subnet_router/main.tf line 52, in locals:
│   52:   region     = coalesce(var.region, data.aws_region.current.region)
│ 
│ This object has no argument, nested block, or exported attribute named "region".

From just this:

module "tailscale" {
  source  = "masterpointio/tailscale/aws"
  version = "1.11.0"

  label_order = ["environment", "name"]
  environment = var.env_name
  name        = "tailscale-subnet-router"

  ssm_state_enabled = true
  vpc_id           = aws_vpc.main.id
  primary_tag      = "tag:${var.tailscale_env_name}"
  subnet_ids       = [for subnet in aws_subnet.subnet_private : subnet.id]
  advertise_routes = [aws_vpc.main.cidr_block]
}

Doesn't matter if the AWS_REGION env var is exported or not (though it shouldn't matter).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions