Error: iam-assumable-role-with-oidc could not be read. This is is a bug in Terraform and should be reported

Hi,

We have suddenly started seeing the error below. It was working without any issues on 13/08/2025. We have;

source = “terraform-aws-modules/iam/aws//modules/iam-assumable-role-with-oidc”
version = “>= 5.44”
Is anyone seeing this error?

Output:

│ Error: Unreadable module directory

│ The directory .terraform/modules/reportum-iam.iam_assumable_role_oidc/modules/iam-assumable-role-with-oidc

│ could not be read. This is a bug in Terraform and should be reported.

It’s a bit premature to declare this to be a bug in Terraform. There are local reasons that could have corrupted the module directory or its contents.

There’s a lot of investigation you could do to identify the problem, but if this is the first time you’ve seen this problem it’s often more effective to reset & retry:

  1. Remove the .terraform directory tree. Don’t do this if you’ve manually put special things in your .terraaform directory tree like your tfstate file.
    1. cd to root module’s directory
    2. rm -r .terraform
  2. Do a fresh “terraform init”

This will create a fresh copy of the module directory on your local system.

Note that public modules like terraform-aws-modules are not officially maintained by HashiCorp.

It can be a permission issue.
Cleaning up the workspace(assuming tfstates are on cloud, not on local) and trying to run the terraform init and plan.