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

aws_db_option_group.this: value of 'count' cannot be computed #107

Closed
kanewinter opened this issue Mar 18, 2019 · 3 comments
Closed

aws_db_option_group.this: value of 'count' cannot be computed #107

kanewinter opened this issue Mar 18, 2019 · 3 comments

Comments

@kanewinter
Copy link

When option_group_name is set it causes this error:
module.rds.module.db_option_group.aws_db_option_group.this: aws_db_option_group.this: value of 'count' cannot be computed
This makes it impossible to select a pre-existing option group.

@kanewinter
Copy link
Author

kanewinter commented Mar 20, 2019

module "rds" {
  source = "terraform-aws-modules/rds/aws"
  identifier = "rds-${var.environment}"
  engine            = "${var.rds_engine}"
  engine_version    = "${var.rds_engine_version}"
  instance_class    = "${var.rds_instance_class}"
  allocated_storage = "${var.rds_allocated_storage}"
  storage_encrypted = "${var.rds_storage_encrypted}"
  multi_az          = "${var.rds_multi_az}"
  name     = "rds_${var.environment}"
  username = "rds_${var.environment}"
  password = "${var.rds_password}"
  port     = "${var.rds_port}"
  vpc_security_group_ids = ["${data.terraform_remote_state.state.default_sg_id}"]
  maintenance_window = "Mon:00:00-Mon:03:00"
  backup_window      = "03:00-06:00"
  backup_retention_period = "${var.rds_retention}"
  tags = "${merge(map(
    "Name", "rds_${var.environment}"),
    var.global_tags
  )}"
  subnet_ids = ["${data.terraform_remote_state.global_state.dev_subnet_ids}"]
  family = "mysql5.7"
  major_engine_version = "5.7"
  final_snapshot_identifier = "rds_dev_db"
  parameters = [
    {
      name = "log_bin_trust_function_creators"
      value = true
    }
  ]
  create_db_option_group = false
  option_group_name = "${aws_db_option_group.default.id}"
}

@antonbabenko
Copy link
Member

Fixed in v2.11.0.

@github-actions
Copy link

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 16, 2022
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