Search code examples
amazon-web-servicesterraformterraform-provider-aws

Where to locate an aws_iam_instance_profile in aws console?


Because of a timeout issue, terraform failed to create an ec2 instance.

In order to recover from it I have manually removed the ec2 instance from aws console as well as the terraform state file.

However now it tried to recreate

  + aws_iam_instance_profile.server
      id:                                        <computed>
      arn:                                       <computed>
      create_date:                               <computed>
      name:                                      "server-profile"
      path:                                      "/"
      role:                                      "server-role"
      roles.#:                                   <computed>
      unique_id:                                 <computed>

Therefore I want to locate it in the aws console and remove it. However I don't know where to find it.

Where can I locate aws_iam_instance_profile.server?


Solution

  • Go to IAM in the console and then Roles.

    You should be able to find the role there, once you delete that, the instance profile should also be gone.