terraform-provider-redshift icon indicating copy to clipboard operation
terraform-provider-redshift copied to clipboard

Error on external schema creation

Open mdimas opened this issue 2 years ago • 4 comments

Creating a redshift_schema resource with an rds_mysql_source block successfully creates the schema, but then fails with the error "Unsupported source database type unknown".

mdimas avatar Sep 12 '23 18:09 mdimas

It looks like the cause of the problem is that and rds_mysql_source is expected to have eskind = 7

WHEN eskind = 7 THEN 'rds_mysql_source'

However, when you query svv_external_schemas you'll see that the eskind is 8.

mdimas avatar Sep 12 '23 18:09 mdimas

It looks like the cause of the problem is that and rds_mysql_source is expected to have eskind = 7

WHEN eskind = 7 THEN 'rds_mysql_source'

However, when you query svv_external_schemas you'll see that the eskind is 8.

based on the amazon document https://docs.aws.amazon.com/redshift/latest/dg/r_SVV_EXTERNAL_SCHEMAS.html 8 indicates a schema for remote MySQL databases, there is nothing assigned to number 7, which previously might have been remote MySQL databases

the code which makes use of this mapping https://github.com/brainly/terraform-provider-redshift/blob/785455d972e902ea934d504a63e666b17e0cdc4a/redshift/resource_redshift_schema.go#L482

sudhirmishra avatar Nov 08 '23 09:11 sudhirmishra

Hello We have the same issue, do you have any time where this issue will be fixed ? 🙏 Thanks

Olaktal avatar Nov 20 '23 11:11 Olaktal

Also reproducing the issue here. Will appreciate any help.

juanjesus-jeeves avatar May 28 '24 22:05 juanjesus-jeeves