Being connected to AWS Console, looking at EC2 instances list. Or listing your instances using aws-cli
, you will see a field Instance ID
.
The older IDs would look like i-1234560c
. The newer ones would look like i-123456789abcdef01
. On your EC2 Dashboard
, you'll find a Resource ID length management
link on your right (or here). Make sure you picked all checkboxes: next instances you will create will use these longer IDs.
Note that longer IDs only apply to new instances. You can very well keep your existing instances as they are, and keep longer IDs disabled until their usage becomes mandatory.
Update: AWS docs says:
A resource ID takes the form of a resource identifier (such as snap for a snapshot) followed by a hyphen and a unique combination of letters and numbers. Starting in January 2016, we're gradually introducing longer length IDs for some Amazon EC2 and Amazon EBS resource types. The length of the alphanumeric character combination was in an 8-character format; the new IDs are in a 17-character format, for example, i-1234567890abcdef0 for an instance ID.
Supported resource types will have an opt-in period, during which you can enable the longer ID format. After you've enabled longer IDs for a resource type, any new resources that you create are created with a longer ID unless you explicitly disable the longer ID format. A resource ID does not change after it's created; therefore, your existing resources with shorter IDs are not affected. Similarly, if you disable longer IDs for a resource type, any resources that you created with the longer IDs are not affected.
All supported resource types will have a deadline date, after which all new resources of this type default to the longer ID format, and you can no longer disable the longer ID format. You can enable or disable longer IDs per IAM user and IAM role. By default, an IAM user or role defaults to the same settings as the root user.
Depending on when you created your account, supported resource types may default to using longer IDs. However, you can opt out of using longer IDs until the deadline date for that resource type. For more information, see Longer EC2 and EBS Resource IDs in the Amazon EC2 FAQs.
You do not need to switch these yourself.