I would like to export my current Redshift DB scheme table structure without data in current DB environment to another redshift DB environment.
The schema would be stored on to my S3 bucket, I would like to move the same scheme table structure without any data from the prod environment to my testing redshift environment. Resulting in both environments having the same structure.
I have found the AWS doc suggesting using the UNLOAD command via S3 bucket: How would i do this without copying the data which i do not need
https://docs.aws.amazon.com/redshift/latest/dg/r_UNLOAD.html
What would be the best practice for exporting the current Redshift Schema tables without the data and importing it to another Redshift Cluster?
You can use the following command to generate a DDL command for an existing table and using that command, you'll be able to re-create the table elsewhere with the same schema.
Replace product_description with your table name and you'll get a DDL command for that table.