1 Answer
- Newest
- Most votes
- Most comments
0
Instance IDs are uniquely generated globally, which means for every region and for every account, and are unable to be reused again. So to answer your questions specifically:
- No, that same ID cannot be used again.
- Yes, and even across all accounts.
answered a year ago
Relevant content
- asked 2 years ago
- asked 2 years ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated 2 years ago
Great, thank you for clarifying
Just curious. How does the service(Not just for Instances and not just EC2) manage to create a globally unique IDs every single time?
Lets say there's a small service somewhere doing this job of generating IDs that are unique. Does this service have to look at all the previously used IDs before returning a new one? If Yes, how does it do this so fast? OR Does it simply apply some transformations to a set of known values such as [AccountID, Region, CreationTimestamp, etc.] and hope for the output to be globally unique? OR Is there some other magic happening. (PS: I have no experience with development)