The instance-id returned from a curl request to http://169.254.169.254/latest/meta-data/instance-id
appears to be the EC2 instance ID that runs that particular curl request in this case, to terminate that particular instance.
Will this always be the case - i.e. is http://169.254.169.254/latest/meta-data/instance-id
a reliable way of quickly/easily retrieving the instance-id, or is there more to it? (I'm slightly suspicious of the use of 'latest' in the url - and want to check that this curl request is doing exactly as I think it does - returning the instance-id of the EC2 from which the curl request originates, and not something different, like the 'latest' instance launched in that group etc)