# Error: creating Glue Catalog Database

**URL:** <https://community.deeplearning.ai/t/error-creating-glue-catalog-database/782390>\
**Category:** Data Modeling, Transformation, and Serving\
**Tags:** week-module-4, coursera-platform\
**Created:** [March 9, 2025, 2:20am UTC](https://community.deeplearning.ai/t/error-creating-glue-catalog-database/782390 "2025-03-09T02:20:44Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![rfink2024](https://avatars.discourse-cdn.com/v4/letter/r/c2a13f/32.png) [@rfink2024](https://community.deeplearning.ai/u/rfink2024)\
**Post date:** [March 9, 2025, 2:20am UTC](https://community.deeplearning.ai/t/error-creating-glue-catalog-database/782390/1 "2025-03-09T02:20:44Z")

</div>

- Link to the classroom item you are referring to: [Assignment 5: Capstone Project Part 2 - Data Quality and Orchestration and Visualization | Coursera](https://www.coursera.org/learn/data-modeling-transformation-serving/programming/sgcVR/assignment-5-capstone-project-part-2-data-quality-and-orchestration-and)

When I run: terraform apply -target=module.transform\_job

I get: Error: creating Glue Catalog Database (de\_c4w4a2\_silver\_db): operation error Glue: CreateDatabase, https response error StatusCode: 400, RequestID: a18f4b4a-9908-4fa3-a4d7-784b0af82947, AlreadyExistsException: Database already exists.

I deleted de\_c4w4a2\_silver\_db from the aws glue catalog db console and I still get the same error.

---

<div class="post-metadata">

**Author:** ![rfink2024](https://avatars.discourse-cdn.com/v4/letter/r/c2a13f/32.png) [@rfink2024](https://community.deeplearning.ai/u/rfink2024)\
**Post date:** [March 9, 2025, 1:09pm UTC](https://community.deeplearning.ai/t/error-creating-glue-catalog-database/782390/2 "2025-03-09T13:09:50Z")

</div>

Now I’m having a different issue. First, to get past my previous issue, I changed the environment variable value for the catalog db to de\_c4w4a2\_silver\_db1. This got me past my earlier issue. Now, I’m seeing the following when I try to run terraform apply -target=module.transform\_job:

AnalysisException: Unable to verify existence of default database: com.amazonaws.services.glue.model.AccessDeniedException: Insufficient Lake Formation permission(s) on default

I modified the IAM role that is executing the glue transformation jobs to include the lakeformation ability to describe the default glue catalog db. Unfortunately, this didn’t fix my issue. I don’t know what else to tell you. Is there any way you reset my whole Programming Assignment: Assignment 5: Capstone Project Part 2 - Data Quality and Orchestration and Visualization environment and let me start over from scratch?

---

<div class="post-metadata">

**Author:** ![Amir\_Zare](https://sea1.discourse-cdn.com/dlai/user_avatar/community.deeplearning.ai/amir_zare/32/95275_2.png) [@Amir\_Zare](https://community.deeplearning.ai/u/Amir_Zare)\
**Post date:** [March 9, 2025, 7:49pm UTC](https://community.deeplearning.ai/t/error-creating-glue-catalog-database/782390/3 "2025-03-09T19:49:27Z")

</div>

Hello @rfink2024  
Please, don’t change anything in the configurations that you are not supposed to, because this leads to permission errors as you have seen. In order to fix the issue you are facing, please fill out this [lab refresh form](https://forms.gle/S2gLNzQXZuMhBGwL6) and try again in a few days after your lab has been refreshed.
