Amazon EC2 instances can be created with 'User Data' (a long string), or metadata tags (a number of key/value pairs).
What is the difference between these? Why do these two systems exist in parallel?
In particular, I wish to pass certain pieces of custom data (i.e. a connection string and two resource URLs) to an EC2 machine on startup so it can configure itself. Presumably these are best sent as three key/value pairs?
According to this documentation page, Metadata provided by Amazon and User Data specified by the user: