I need a function wich tells me the instanceID, I was searching here for a function, but you always need the id... Yeah and this is the problem.
I'm not allowed to use the console, need to find it out via a script.
I saw the AWS.MetadataService documentation, but I can't handle it. I just can see single pieces but I don't know how to match them right, to geht what I want. At the moment I have this
var meta = new AWS.MetadataService();
meta.request("http://169.254.169.254/latest/meta-data/", function(err, data){
console.log(data);
});
But ofc this dont works... What needs to be in the path parameter?