No Schema Available for aws_iam_role_policy_attachments_exclusive

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

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.