terraform-aws-modules / terraform-aws-rds-aurora

Terraform module to create AWS RDS Aurora resources 🇺🇦
https://registry.terraform.io/modules/terraform-aws-modules/rds-aurora/aws
Apache License 2.0
385 stars 566 forks source link

hashicorp/random provider version needs to be upgraded #352

Closed cwong-archy closed 1 year ago

cwong-archy commented 1 year ago

Description

when i update my hashcorp/aws provider to 4.52.0, i am getting the following error from terraform init -upgrade.

Initializing provider plugins...
- Reusing previous version of hashicorp/aws from the dependency lock file
- Reusing previous version of hashicorp/random from the dependency lock file
- Installing hashicorp/random v3.4.3...
- Installed hashicorp/random v3.4.3 (signed by HashiCorp)
╷
│ Error: Failed to query available provider packages
│
│ Could not retrieve the list of available versions for provider hashicorp/aws: locked provider registry.terraform.io/hashicorp/aws 4.52.0 does not match configured version constraint >= 3.2.0, >= 4.0.0, >= 4.12.0, >= 4.29.0, >= 4.30.0, ~> 4.33.0, ~> 4.52.0; must use terraform init -upgrade to allow selection of new versions
╵

i think it needs to be at least 3.1.0 to be compatible with aws 4.52.0

Versions

Reproduction Code [Required]

module "aurora" {
  source  = "terraform-aws-modules/rds-aurora/aws"
  version = "~> 7.6"

  name                            = "${var.name}-mysql"
  engine                          = var.engine
  engine_mode                     = "provisioned"
  engine_version                  = var.engine_version
  storage_encrypted               = true
  global_cluster_identifier       = var.global_cluster_identifier
  kms_key_id                      = aws_kms_key.this.arn
  db_cluster_parameter_group_name = module.rds_cluster_grp.id

  vpc_id                 = var.vpc_id
  subnets                = var.subnets
  create_security_group  = true
  allowed_cidr_blocks    = var.allowed_cidr_blocks
  vpc_security_group_ids = var.vpc_security_group_ids

  apply_immediately               = true
  skip_final_snapshot             = true
  monitoring_interval             = 60
  copy_tags_to_snapshot           = true
  enabled_cloudwatch_logs_exports = var.cloudwatch_logs_exports
  deletion_protection             = var.deletion_protection

  is_primary_cluster     = var.is_primary_cluster == true ? true : false
  create_random_password = var.is_primary_cluster == true ? true : false
  master_username        = var.is_primary_cluster == true ? var.master_username : null
  random_password_length = var.is_primary_cluster == true ? var.random_password_length : null

  serverlessv2_scaling_configuration = var.scaling_config

  instance_class = "db.serverless"
  instances      = var.instances
}

Steps to reproduce the behavior:

Expected behavior

Actual behavior

Terminal Output Screenshot(s)

Additional context

cwong-archy commented 1 year ago

human error. )=

github-actions[bot] commented 1 year ago

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.