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

Resource 'aws_ecs_task_definition.main' not found for variable 'aws_ecs_task_definition.main.(arn|family|revision)' #2

Open
r8or0pz opened this issue Aug 17, 2021 · 2 comments

Comments

@r8or0pz
Copy link

r8or0pz commented Aug 17, 2021

I'm having an issue on planning stage:

Error: Error running plan: 3 error(s) occurred:

* module.main.module.task.output.arn: Resource 'aws_ecs_task_definition.main' not found for variable 'aws_ecs_task_definition.main.arn'
* module.main.module.task.output.name: Resource 'aws_ecs_task_definition.main' not found for variable 'aws_ecs_task_definition.main.family'
* module.main.module.task.output.revision: Resource 'aws_ecs_task_definition.main' not found for variable 'aws_ecs_task_definition.main.revision'

My Terraform code snippet:

module "main" {
  source = "git::https://github.com/egarbi/terraform-aws-ecs-service?ref=1.0.8"

  name                  = "${var.name}"
  environment           = "${terraform.env}"
  desired_count         = "${lookup(var.desired_count, terraform.env)}"
  cluster               = "${data.terraform_remote_state.vpc.cluster}"
  iam_role              = "${data.terraform_remote_state.vpc.iam_role}"
  vpc_id                = "${data.terraform_remote_state.vpc.vpc_id}"
  zone_id               = "${data.terraform_remote_state.vpc.zone_id}"
  rule_priority         = "${var.priority}"
  alb_listener          = "${data.terraform_remote_state.vpc.alb_listener_arn}"
  alb_zone_id           = "${data.terraform_remote_state.vpc.alb_zone_id}"
  alb_dns_name          = "${data.terraform_remote_state.vpc.alb_dns_name}"
  container_definitions = "${data.template_file.container_defs.rendered}"
  policy = <<EOF
{
    "Version": "2012-10-17",
    "Statement": [
        {
            "Effect": "Allow",
            "Action": [
                "ses:SendRawEmail"
            ],
            "Resource": [
                "arn:aws:ses:us-east-1:1234567890:identity/[email protected]"
            ]
        }
    ]
}
EOF
}

How may I solve it?

@egarbi
Copy link
Owner

egarbi commented Aug 19, 2021

Hi @lngphp, I'm afraid this module is really out of date now since it has not been updated for a few years.
Which version of Terraform are you using?

@r8or0pz
Copy link
Author

r8or0pz commented Aug 19, 2021

It's v0.11.8

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

2 participants