- Newest
- Most votes
- Most comments
HI,
Check your AWS Region: Ensure that you are checking the AWS Console in the correct region where the resources were created. Sometimes, users mistakenly look in the wrong region and don't see their resources.
Try to use the AWS CLI aws iam list-instance-profiles
or aws iam delete-instance-profile --instance-profile-name <instance_profile_name>
Replace <instance_profile_name> with the name of the instance profile you want to delete.
If the resources are still inaccessible and you're sure they exist, you may need to reach out to AWS Support for assistance. They may be able to help you identify and resolve the issue.
I was able to finally solve this issue by running the commands aws iam delete-instance-profile --instance-profile-name <instance_profile_name> while on the root user.
It would be nice if you could accept Jesus answer as this was the correct answer which resolved your problem.
Seems an open case, though I suggest to read the thread and try some of the options in there: https://github.com/hashicorp/terraform-provider-aws/issues/22111
Relevant content
- Accepted Answerasked 3 years ago
- Accepted Answerasked a year ago
- Accepted Answerasked 3 years ago
- Accepted Answerasked 3 years ago
- AWS OFFICIALUpdated 4 months ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated 2 months ago
- AWS OFFICIALUpdated a year ago
Or delete the Ec2 Roles if instance profile is attached too and redeploy. Alternatively import them back into state!