getmoto / moto

A library that allows you to easily mock out tests based on AWS infrastructure.

Home Page:http://docs.getmoto.org/en/latest/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Unable to create rds cluster

aranjan1002 opened this issue · comments

I tried creating a RDS cluster using Terraform but it gets stuck with the message: "Still creating.."

Here is a sample terraform code:

resource "aws_rds_cluster" "postgresql" {
  cluster_identifier      = "aurora-cluster-demo"
  engine                  = "aurora-postgresql"
  availability_zones      = ["us-east-1a"]
  database_name           = "mydb"
  master_username         = "foo"
  master_password         = "barbarbar"
  backup_retention_period = 5
  preferred_backup_window = "07:00-09:00"
}

I wonder if it is because the status is set to "creating" here. It is previously set to "active" here

Hi @aranjan1002, thanks for raising this! There were two issues, actually - the status was indeed incorrect, and the generated XML was sending an invalid value (None instead of false).

The attached PR fixes both, and validates that the TF is now happy.