Search code examples
amazon-web-servicesamazon-ec2amazon-iamamazon-ami

Difference between InstanceID and ImageID


I am currently working on some IAM policies on AWS and being asked to specify Instance and Image ID. I am not sure what is the difference between the two. From what I understand and instanceID is the one that starts with ami-XXXXXX. Correct me if I am wrong, if that is the case where can I find imageID.


Solution

  • You can achieve this in following ways :-

    First make sure you are using the new EC2 Experience ( these are applicable on updated UI)

    1. Now log in to your console.
    2. Go to EC2 instances.
    3. You will see resources, under resources click on instances (all states).

    Note :- You have chosen the right region.

    1. Click onleft check box for the instance you want to find details ; in the bottom of the screen under Details you can find instance id starting with i-*** and further scroll it you will get ami id starting with ami-*** also. enter image description here