FlexibleEngineCloud / terraform-provider-flexibleengine

Terraform flexibleengine provider
https://www.terraform.io/docs/providers/flexibleengine/
Mozilla Public License 2.0
30 stars 53 forks source link

Cannot create RDS MySQL 8 Primary / Standby #835

Closed melnottp closed 1 year ago

melnottp commented 1 year ago

Hi there,

I'm trying to create and RDS instance with the following code

resource "flexibleengine_rds_instance_v3" "instance" {
  name              = "${var.project}-MySQL-${random_string.id.result}"
  flavor            = "rds.mysql.c6.large.2.ha"
  availability_zone = ["eu-west-0b", "eu-west-0c"]
  security_group_id = flexibleengine_networking_secgroup_v2.secgroup.id
  vpc_id            = flexibleengine_vpc_v1.vpc.id
  subnet_id         = flexibleengine_networking_network_v2.net.id

  db {
    type     = "MySQL"
    version  = "8.0"
    password = "${var.mysql_password}"
    port     = "3306"
  }
  volume {
    type = "COMMON"
    size = 100
  }
  backup_strategy {
    start_time = "08:00-09:00"
    keep_days  = 1
  }
}

Result is the following error

flexibleengine_rds_instance_v3.instance: Creating...
╷
│ Error: error creating RDS instance: Bad request with: [POST https://rds.eu-west-0.prod-cloud-ocb.orange-business.com/v3/482ea20d5304444599335a9d555fa70e/instances], error message: {"error_msg":"Invalid AZ.","error_code":"DBS.280285"}
│ 
│   with flexibleengine_rds_instance_v3.instance,
│   on main.tf line 328, in resource "flexibleengine_rds_instance_v3" "instance":
│  328: resource "flexibleengine_rds_instance_v3" "instance" {
│ 
ShiChangkuo commented 1 year ago

@melnottp the error comes from cloud side, and the error message is Invalid AZ, so I suggest you use another availability zones or open a new service ticket to Orange.

ShiChangkuo commented 1 year ago

I'm going to close this issue because there are no updates for 20 days. 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.