Error: module "name": "tags" is not a valid argument

I am getting this error while creating module ecs. The source code is as follows:
module “ecs” {
source = “terraform-aws-modules/ecs/aws”

name = “my-ecs”
version = “1.2”
tags = {
Terraform = “true”
Environment = “dev”

Error I am getting is:
Error: module “ecs”: “tags” is not a valid argument.

Terraform version v0.11.6

Hi @guptalatika31,

According to the module documentation, it looks like the tags argument was added in version 1.3.0 of this module, and so it’s not available in the 1.2.0 version you are selecting here.

You might be able to resolve this by upgrading the module:

  version = "1.3.0"

According to the module’s changelog it seems that nothing else changed between 1.2.0 and 1.3.0, so this upgrade ought to be safe but I’d still suggest looking carefully at the terraform plan output after upgrading to make sure that there aren’t any other changes in this new version that might cause problems.

Hi @apparentlymart, thanks for your response. I am supposed to use terraform version 0.11.6 and hence can only use version 1.2. Anyhow, I didn’t know that tag support is there version wise. Will keep it in mind from the next time.