# C4 W4 Assignment 2: Terraform apply keeps crashing and AccessDeniedException for Glue jobs

**URL:** <https://community.deeplearning.ai/t/c4-w4-assignment-2-terraform-apply-keeps-crashing-and-accessdeniedexception-for-glue-jobs/821663>\
**Category:** Data Modeling, Transformation, and Serving\
**Tags:** week-module-4, coursera-platform\
**Created:** [May 26, 2025, 2:35am UTC](https://community.deeplearning.ai/t/c4-w4-assignment-2-terraform-apply-keeps-crashing-and-accessdeniedexception-for-glue-jobs/821663 "2025-05-26T02:35:39Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![sandrett](https://avatars.discourse-cdn.com/v4/letter/s/919ad9/32.png) [@sandrett](https://community.deeplearning.ai/u/sandrett)\
**Post date:** [May 26, 2025, 2:35am UTC](https://community.deeplearning.ai/t/c4-w4-assignment-2-terraform-apply-keeps-crashing-and-accessdeniedexception-for-glue-jobs/821663/1 "2025-05-26T02:35:39Z")

</div>

Hi everyone,  
I have encountered couple of issues with the assignment. Appreciate any assistance on how to address issue #2 below re AccessDeniedException.

1. Step 2.2: the terraform apply (3 modules) kept crashing the terminal. Have tried several times but it kept crashing. Then, ran ‘terraform destroy’ and tried to rerun the modules but it continued to crash the terminal. Lastly, have waited for several hours and restarted the lab. It did work eventually. I have included this here as this might have some correlation to the next error.
2. Step 2.4: Getting an AccessDeniedException when attempting to run the 3 glue jobs. I do not believe I am in position to debug the issue. Error message: ‘An error occurred (AccessDeniedException) when calling the StartJobRun operation: User: arn:aws:sts::741366199435:assumed-role/voclabs/user4111958=orkhmclfnujr is not authorized to perform: glue:StartJobRun on resource: arn:aws:glue:us-east-1:741366199435:job/glue\_api\_users\_extract\_job because no identity-based policy allows the glue:StartJobRun action’

Thank you in advance for your help!

---

<div class="post-metadata">

**Author:** ![another\_username](https://avatars.discourse-cdn.com/v4/letter/a/ed655f/32.png) [@another\_username](https://community.deeplearning.ai/u/another_username)\
**Post date:** [May 26, 2025, 2:50pm UTC](https://community.deeplearning.ai/t/c4-w4-assignment-2-terraform-apply-keeps-crashing-and-accessdeniedexception-for-glue-jobs/821663/2 "2025-05-26T14:50:37Z")

</div>

Can confirm – getting the same error at the same step in the notebook, terraform apply works but then receiving AccessDeniedException when running the initial glue job.

You might want to fill out this form: [Combined Data Engineering Lab Issue Report](https://docs.google.com/forms/d/e/1FAIpQLSd2EEfKhPusVu_QlVF72tsma-BsWBa8TMgE1uZSmX2efvkYYQ/viewform)

Hoping that this resolves it…

---

<div class="post-metadata">

**Author:** ![AakashBolisetty](https://avatars.discourse-cdn.com/v4/letter/a/e9bcb4/32.png) [@AakashBolisetty](https://community.deeplearning.ai/u/AakashBolisetty)\
**Post date:** [May 27, 2025, 9:32pm UTC](https://community.deeplearning.ai/t/c4-w4-assignment-2-terraform-apply-keeps-crashing-and-accessdeniedexception-for-glue-jobs/821663/3 "2025-05-27T21:32:19Z")

</div>

Did filling this resolve the issue for you?

---

<div class="post-metadata">

**Author:** ![sandrett](https://avatars.discourse-cdn.com/v4/letter/s/919ad9/32.png) [@sandrett](https://community.deeplearning.ai/u/sandrett)\
**Post date:** [May 28, 2025, 4:35am UTC](https://community.deeplearning.ai/t/c4-w4-assignment-2-terraform-apply-keeps-crashing-and-accessdeniedexception-for-glue-jobs/821663/4 "2025-05-28T04:35:14Z")

</div>

Hi, I would recommend reviewing the Terraform output which provides the proper values to use to run the Glue jobs.. There was no need to fill out the form. Thank you!

---

<div class="post-metadata">

**Author:** ![sandrett](https://avatars.discourse-cdn.com/v4/letter/s/919ad9/32.png) [@sandrett](https://community.deeplearning.ai/u/sandrett)\
**Post date:** [May 28, 2025, 4:35am UTC](https://community.deeplearning.ai/t/c4-w4-assignment-2-terraform-apply-keeps-crashing-and-accessdeniedexception-for-glue-jobs/821663/5 "2025-05-28T04:35:38Z")

</div>

Hi, there was no need to fill out the form. Thank you!
