gpt4 book ai didi

amazon-rds - terraform aurora 5.7 配置错误

转载 作者:行者123 更新时间:2023-12-04 16:03:46 26 4
gpt4 key购买 nike

有人可以为 aurora 5.7 提供 terraform 吗?我被困在以下错误中。知道为什么吗?

    * aws_rds_cluster.default: InvalidParameterCombination: 
The Parameter Group test-aurora-57-cluster-parameter-group with DBParameterGroupFamily
aurora-mysql5.7 cannot be used for this instance. Please use a Parameter Group with DBParameterGroupFamily oscar5.6
status code: 400, request id: 09b5d660-1d71-49bf-a5de-a62b87805038

这是集群和集群实例配置:

resource "aws_rds_cluster_instance" "cluster_instance" {
#...
db_parameter_group_name = "${aws_db_parameter_group.aurora_db_57_parameter_group.id}"
}


resource "aws_rds_cluster" "default" {
#...
db_cluster_parameter_group_name = "${aws_rds_cluster_parameter_group.aurora_57_cluster_parameter_group.id}"
}

resource "aws_db_parameter_group" "aurora_db_57_parameter_group" {
name = "test-aurora-db-57-parameter-group"
family = "aurora-mysql5.7"
description = "test-aurora-db-57-parameter-group"
}

resource "aws_rds_cluster_parameter_group" "aurora_57_cluster_parameter_group" {
name = "test-aurora-57-cluster-parameter-group"
family = "aurora-mysql5.7"
description = "test-aurora-57-cluster-parameter-group"
}

最佳答案

您应该为集群和实例部分指定引擎版本。

resource "aws_rds_cluster" "aurora" {
engine = "aurora-mysql"
...
}

resource "aws_rds_cluster_instance" "aurora_instance" {
engine = "aurora-mysql"
...
}

关于amazon-rds - terraform aurora 5.7 配置错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/49688068/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com