Skip to content
This repository has been archived by the owner on Feb 11, 2020. It is now read-only.

aws_efs_mount_target.mount_target: value of 'count' cannot be computed #83

Closed
mgeerdsen opened this issue Jul 12, 2018 · 0 comments
Closed

Comments

@mgeerdsen
Copy link
Contributor

When initially trying to set up the infrastructure from https://github.com/wellcometrust/workflow/tree/new-infra I ran into the following error:

module.goobi.module.efs.aws_efs_mount_target.mount_target: aws_efs_mount_target.mount_target: value of 'count' cannot be computed

It appears that count cannot be computed in the EFS module as it is derived via length() from var.subnets which have not yet been created.

Similiar issues have been described in hashicorp/terraform#10857

I will add a PR in a bit.

mgeerdsen added a commit that referenced this issue Jul 12, 2018
num_subnets equals the number of AZs, as that equals the number of
private subnets (and the number of public subnets)
ref issue #83
mgeerdsen added a commit to wellcomecollection/goobi-infrastructure that referenced this issue Jul 12, 2018
kenoir pushed a commit that referenced this issue Jul 17, 2018
num_subnets equals the number of AZs, as that equals the number of
private subnets (and the number of public subnets)
ref issue #83
kenoir pushed a commit that referenced this issue Jul 17, 2018
* introduce num_subnets var to work around issue #83

* introduce output num_subnets

num_subnets equals the number of AZs, as that equals the number of
private subnets (and the number of public subnets)
ref issue #83
@kenoir kenoir closed this as completed Dec 3, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants