terraform-provider-huaweicloud
terraform-provider-huaweicloud copied to clipboard
[CSS] The cluster cannot be created when backup_strategy.0.bucket is null
Hi team,
I found a problem as follows:
│ Error: error creating CSS cluster, err={"status_code":500,"request_id":"d6d90283f2458cc2273168e21c6596ef","error_code":"","error_message":"<html>\r\n <head>\r\n <meta http-equiv='Content-Type' content='text/html; charset=utf-8' />\r\n </head>\r\n <body bgcolor='white'>\r\n <div style='text-align: center;'>\r\n <h1>HTTP STATUS: 500 </h1>\r\n <hr>\r\n <p>CloudMiddleWareTomcat</p>\r\n </div>\r\n </body>\r\n</html>\r\n<!-- a padding to disable MSIE and Chrome friendly error page -->\r\n<!-- a padding to disable MSIE and Chrome friendly error page -->\r\n<!-- a padding to disable MSIE and Chrome friendly error page -->\r\n<!-- a padding to disable MSIE and Chrome friendly error page -->\r\n<!-- a padding to disable MSIE and Chrome friendly error page -->\r\n<!-- a padding to disable MSIE and Chrome friendly error page -->\r\n<!-- a padding to disable MSIE and Chrome friendly error page -->\r\n<!-- a padding to disable MSIE and Chrome friendly error page -->\r\n<!-- a padding to disable MSIE and Chrome friendly error page -->\r\n<!-- a padding to disable MSIE and Chrome friendly error page -->\r\n"}
│
│
│ with huaweicloud_css_cluster.test,
│ on main.tf line 78, in resource "huaweicloud_css_cluster" "test":
│ 78: resource "huaweicloud_css_cluster" "test" {
There is my terraform script:
resource "huaweicloud_css_cluster" "test" {
name = var.cluster_name
engine_version = "7.9.3"
expect_node_num = 3
enterprise_project_id = data.huaweicloud_enterprise_project.default.id
node_config {
flavor = "ess.spec-4u16g"
availability_zone = data.huaweicloud_availability_zones.default.names[0]
network_info {
security_group_id = "6b026e04-f4e2-431d-8c3b-4f570658b414" // huaweicloud_networking_secgroup.default.id
subnet_id = huaweicloud_vpc_subnet.default.id
vpc_id = huaweicloud_vpc.default.id
}
volume {
volume_type = "HIGH"
size = 40
}
}
backup_strategy {
keep_days = 7
start_time = "00:00 GMT+08:00"
prefix = "snapshot"
}
tags = {
owner = "terraform"
}
lifecycle {
ignore_changes = [
enterprise_project_id,
]
}
}