# No Schema Available for aws\_iam\_role\_policy\_attachments\_exclusive

**URL:** <https://discuss.hashicorp.com/t/no-schema-available-for-aws-iam-role-policy-attachments-exclusive/73178>\
**Category:** AWS\
**Created:** [February 12, 2025, 1:29pm UTC](https://discuss.hashicorp.com/t/no-schema-available-for-aws-iam-role-policy-attachments-exclusive/73178 "2025-02-12T13:29:35Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![nourhan.nawar](https://sea2.discourse-cdn.com/hashicorp/user_avatar/discuss.hashicorp.com/nourhan.nawar/32/44271_2.png) [@nourhan.nawar](https://discuss.hashicorp.com/u/nourhan.nawar)\
**Post date:** [February 12, 2025, 1:29pm UTC](https://discuss.hashicorp.com/t/no-schema-available-for-aws-iam-role-policy-attachments-exclusive/73178/1 "2025-02-12T13:29:35Z")

</div>

Hi All,  
I ran into this error when trying Terraform apply however this resource is no longer used.

I was using a newer aws version then I had to downgrade, so I removed this resource because it was not supported in the older version, but it still seen by terraform when doing terraform apply.

Please help me as soon as possible. Thanks

---

<div class="post-metadata">

**Author:** ![jar-b](https://sea2.discourse-cdn.com/hashicorp/user_avatar/discuss.hashicorp.com/jar-b/32/36420_2.png) [@jar-b](https://discuss.hashicorp.com/u/jar-b)\
**Post date:** [February 12, 2025, 3:33pm UTC](https://discuss.hashicorp.com/t/no-schema-available-for-aws-iam-role-policy-attachments-exclusive/73178/2 "2025-02-12T15:33:01Z")

</div>

You’ll need to remove the resource _before_ downgrading the provider. This will ensure the resource is removed from state before the older version which does not contain the resource definition is initialized.
