Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[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

Open
Dzhuneyt opened this issue Jul 23, 2019 · 0 comments

Comments

@Dzhuneyt
Copy link

Dzhuneyt commented Jul 23, 2019

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
    },
  ]
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant