Uniqueness of EC2 instance id


Are Amazon EC2 instance Ids globally unique or regionally unique? For example, can two different regions have same EC2 instance id? Asking this because we are trying to export app metrics to an APM system and we need to know if we can rely only on the EC2 instance id or need to concatenate with the region / other identifier. Could not find any correct documentation regarding this hence wanted to confirm before we proceed.

asked a year ago1565 views
1 Answer

According to Resource IDs, they are unique.

When resources are created, we assign each resource a unique resource ID
profile pictureAWS
answered a year ago
profile pictureAWS
reviewed a year ago
  • The document mentions "Each resource identifier, such as an AMI ID, instance ID, EBS volume ID, or EBS snapshot ID, is tied to its Region and can be used only in the Region where you created the resource." but no mention if the same instance id can be present in different region. Hence wanted to confirm.

  • If an instance is terminated, can that Instance ID be used again in the same AWS account? Are Instance IDs unique across all regions in the same AWS account?

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions