Skip to content

[BUG] The argument "tags" was already set at .terraform/modules/ecs-cluster/main.tf:62,3-7. Each argument may be set only once. #53

@Dzhuneyt

Description

@Dzhuneyt
Error: Attribute redefined

  on .terraform/modules/ecs-cluster/main.tf line 68, in resource "aws_autoscaling_group" "ecs":
  68:   tags = ["${var.extra_tags}"]

The argument "tags" was already set at
.terraform/modules/ecs-cluster/main.tf:62,3-7. Each argument may be set only
once.

I get this error while trying a terraform plan on the following main.tf:

provider "aws" {
  region = "us-east-1"
}

module "ecs-cluster" {
  source = "github.com/terraform-community-modules/tf_aws_ecs"
  name = "infra-services"
  servers = 2
  subnet_id = [
    "subnet-6e101446"]
  vpc_id = "vpc-99e73dfc"
  extra_tags = [
    {
      key = "consul_server"
      value = "true"
      propagate_at_launch = true
    },
  ]
}

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