GitLab CI Runners 失败 InvalidParameterCombination:找不到从 5.7.38 到 5.6 的升级路径,Terraform

GitLab CI Runners 失败 InvalidParameterCombination:找不到从 5.7.38 到 5.6 的升级路径,Terraform

GitLab CI Runners 导致 jbo 失败,并显示以下错误消息

│ Error: Error modifying DB Instance legacy-dms: InvalidParameterCombination: Cannot find upgrade path from 5.7.38 to 5.6.
│   status code: 400, request id: e7740193-bf98-464c-a1b3-4124d7f5d909
│   with module.db.module.db_instance.aws_db_instance.this[0],
│   on .terraform/modules/db/modules/db_instance/main.tf line 45, in resource "aws_db_instance" "this":
│   45: resource "aws_db_instance" "this" {

Terraform hcl 文件:

inputs = {

  # Identifier is name in AWS and should be unique in the account
  identifier = "test-dms"
  # Name is actual DB name (doesn't need to be unique)
  name = "PNRQ"

  # Set the following carefully on valid RDS values:
  engine         = "mysql"
  engine_version = "5.6"
  # One year old bug, creating option groups when the default should be used
  # So we have to explicitly set it to the default
  # https://github.com/terraform-aws-modules/terraform-aws-rds/issues/272
  # https://github.com/terraform-aws-modules/terraform-aws-rds/issues/188
  option_group_name = "default:mysql-5-6"
  port              = 3306

  # Change these depending on size/load requirements of the DB and environment
  instance_class    = "db.t3.micro"
  allocated_storage = 20
  multi_az          = false

  # Boilerplate for VPC
  vpc_id         = dependency.vpc.outputs.vpc_id
  vpc_subnet_ids = dependency.vpc.outputs.private_subnets
  allowed_security_groups = [
    # Allow EKS connection
    dependency.eks.outputs.worker_security_group_id,
    # Allow infra runner connection
    dependency.infra_ci.outputs.runner_sg_id
  ]
}

我们有 aws RDS test-dms Engine 版本 5.7.38

并且我已经更新了与此帐户关联的 ACM 证书。

有人能帮助我解决这个问题吗?我将不胜感激任何帮助。

相关内容