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

redis_ingress: value of 'count' cannot be computed #4

Closed
BigAl opened this issue May 25, 2017 · 2 comments
Closed

redis_ingress: value of 'count' cannot be computed #4

BigAl opened this issue May 25, 2017 · 2 comments

Comments

@BigAl
Copy link

BigAl commented May 25, 2017

Error running plan: 1 error(s) occurred:

* module.redis.aws_security_group_rule.redis_ingress: aws_security_group_rule.redis_ingress: value of 'count' cannot be computed

While attempting to use the option allowed_security_groups

  source         = "github.com/terraform-community-modules/tf_aws_elasticache_redis?ref=1.0.1"
  env            = "${var.env}"
  name           = "${var.project}"
  redis_clusters = "2"
  redis_failover = "true"
  subnets        = "${var.data_subnet_list}"
  vpc_id         = "${var.vpc_id}"
  allowed_security_groups = ["${aws_security_group.instance.id}"]
}

I understand the issue here as the instance security group has not yet been created it can't be counted. Seems to be understood see hashicorp/terraform#10857

This only failed for me when i destroyed and attempted to rebuild my stack from scratch. Previous as my instance already had been built it was not an issue.

I'm unsure of what exactly the solution to this is.

@davidkarban
Copy link

Got stuck with that too, as I understand from hashicorp/terraform#10857 there is actually only workarounds possible, I prefer the one with count value, because at least I`m not forced to populate subnets with fixed segurity group ids.

@kitsuneninetails
Copy link

Is this just not going to get fixed? It's been a year and a half... I will have to opt to not use the redis module at all, as this bug is a blocker.

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

4 participants