Is there a possibility that an EC2 instance ID may duplicate an ID with another account?

1

Hello.

Is there a possibility that an EC2 instance ID may duplicate an ID with another account?
I ask because the following documentation seems to be unique at the region level, but does not mention duplication at the account level.
https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/resource-ids.html

profile picture
EXPERT
demandé il y a 7 mois507 vues
3 réponses
3
Réponse acceptée

Hi Riku,

I would tend to say that they are globally unique: https://www.amazonaws.cn/en/ec2/faqs/

Each ID is unique and will never be reused.

Only resources that are created after you opt-in to the longer format will be affected. Once a resource 
has been assigned an ID (long or short), that ID will never change. Each ID is unique and will never be 
reused. Any resource created with the old ID format will always retain its shorter ID. Any resource created 
with the new format will retain its longer ID, even if you opt back out.

If you think about AMI ID (covered by same definitions as EC2 instances, you can share them across accounts. It reinforces the needs for global uniqueness.

Best,

Didier

profile pictureAWS
EXPERT
répondu il y a 7 mois
profile picture
EXPERT
vérifié il y a 2 mois
  • Thank you for your reply. So it will be helpful.

  • You're very welcome! Reading your own answers to other questions is alway very insightful.

2

According to the EC2's FAQs is extremely improbable that will happen: https://www.amazonaws.cn/en/ec2/faqs/

profile picture
répondu il y a 7 mois
  • Thank you for your reply. So it will be helpful.

0

No need to worry! EC2 instance IDs in AWS are like fingerprints – each one is unique and special. You won't run into a situation where your EC2 instance ID is the same as someone else's in a different AWS account.

AWS makes sure that every instance ID is distinct, so you can easily manage and track your instances without any confusion. It's all part of AWS's effort to keep things organized and straightforward

répondu il y a 7 mois

Vous n'êtes pas connecté. Se connecter pour publier une réponse.

Une bonne réponse répond clairement à la question, contient des commentaires constructifs et encourage le développement professionnel de la personne qui pose la question.

Instructions pour répondre aux questions