AWS DMS Homogeneous migration doesn't work in terraform

I’m trying to follow this(Step-by-Step Migration - Database Migration Guide) but in terraform. However, I cannot seem to be able to configure a data migration(step 8: Step 8: Configure a Data Migration - Database Migration Guide). I can do everything including create the migration project but I can’t configure the data migration. My current main.tf file is:

resource "aws_dms_replication_subnet_group" "dms_subnet_group" {
  replication_subnet_group_description = "A group of private subnets"
  replication_subnet_group_id          = "DataMigrationSubnetGroup"
  vpc_id                               = var.vpc_id

  subnet_ids = var.subnet_ids
}

resource "aws_security_group" "dms_instance_profile_sg" {
  egress {
    cidr_blocks = [ "0.0.0.0/0" ]
    from_port = 0
    to_port = 0
    protocol = "-1"
  }
}

resource "awscc_dms_instance_profile" "dms_instance_profile" {
  instance_profile_name = "dm-instance-profile"
  subnet_group_identifier = aws_dms_replication_subnet_group.dms_subnet_group.id
  vpc_security_groups = [ aws_security_group.dms_instance_profile_sg.id ]
  publicly_accessible = true
}


resource "awscc_dms_data_provider" "dms_source_provider" {
  engine = "postgres"
  data_provider_identifier = "dms-postgresql-source-provider"
  settings = {
    postgre_sql_settings = ...
  }
}

resource "awscc_dms_data_provider" "dms_target_provider" {
  engine = "aurora_postgresql"
  data_provider_identifier = "dms-postgresql-target-provider"
  settings = {
    postgre_sql_settings = ...
  }
}

resource "awscc_dms_migration_project" "dms_migration_project" {
  migration_project_name = "dms-migration-project"
  instance_profile_arn = awscc_dms_instance_profile.dms_instance_profile.instance_profile_arn
  source_data_provider_descriptors = [...]
  target_data_provider_descriptors = [...]
}