title: DB Subnet Group doesn't meet availability zone coverage requirement. Please add subnets to cover at least 2 availability zones. Current coverage: 1
body: <p>I have created two subnets for rds but still, I am getting error  DB Subnet Group doesn't meet the availability zone coverage requirement. Please add subnets to cover at least 2 availability zones. Current coverage: 1, As I can check my both subnets, even all of my subnets are getting created in the same availability zone. Can you Please guide me</p>
  <pre><code>resource &quot;aws_db_subnet_group&quot; &quot;rdssubnet&quot; {
    name       = &quot;database subnet&quot;
    subnet_ids = [&quot;${aws_subnet.rds_subnet.id}&quot;,&quot;${aws_subnet.rds_subnet1.id}&quot;]
  }
  
  
  #provision the database
  resource &quot;aws_db_instance&quot; &quot;database&quot; {
    identifier             = &quot;database&quot;
    instance_class         = var.db_instance_type
    allocated_storage      = var.db_size
    engine                 = &quot;mysql&quot;
    multi_az               =  false
    name                   = &quot;Database &quot;
    password               = var.rds_password
    username               = var.rds_user
    engine_version         = &quot;5.7.00&quot;
    skip_final_snapshot    = true
    db_subnet_group_name   = aws_db_subnet_group.rdssubnet.name
    vpc_security_group_ids = [aws_security_group.rds.id]
  </code></pre>