C4W4 Capstone Project Part 2 : Unable to see deftunes_transform and deftunes_serving schemas

Hello,

I am currently working on C4W4 Capstone Project Part 2.
After successfully starting all 3 extract etl jobs (de-c4w4a2-api-users-extract-job, de-c4w4a2-api-sessions-extract-job and de-c4w4a2-rds-extract-job), and the 2 transform jobs (de-c4w4a2-json-transform-job and de-c4w4a2-songs-transform-job) and successfully connecting to the Redshift Cluster, I am not being able to view the schemas deftunes_transform and deftunes_serving as a part of the output of the sql query in the code cell 2.8. (Refer to screenshot 2) and 0 tables (Refer to screenshot 3) as against the expected 3 tables which are part of the deftunes_transform schema in Redshift.

Could you please suggest a fix?

Screenshot 1

Hi @ARINDAM_KUMAR did you run terraform apply? Try following the instructions step by step and follow the terraform commands. Let me know if you did it and still have the issue.

The SHOW SCHEMAS output only lists the default Redshift schemas (public and information_schema). The deftunes_transform and deftunes_serving schemas are created by Terraform via the serving module, which hasn’t been applied yet.

To fix this:

  1. In your terminal (which is already inside ~/project/terraform), run:

    terraform apply -target=module.serving
    
  2. Type yes when prompted and press Enter.

  3. Once Terraform finishes provisioning the schemas, rerun the SQL cells in section 2.8 (SHOW SCHEMAS and SHOW TABLES).

Since your Glue transform jobs have already finished with SUCCEEDED, the 3 tables (users, sessions, songs) will now show up under dev.deftunes_transform.

Got it.

I forgot to apply the terraform transformations to the serving module.

Thanks. @arman101 @pastorsoto