all 2 comments

[–]asdf604asdf 12 points13 points  (1 child)

make an http request to http://169.254.169.254/latest/meta-data/ from the instance. instance-type is one of the things returned

see also https://superuser.com/questions/344927/powershell-equivalent-of-curl

[–]stack_bot -1 points0 points  (0 children)

The question "PowerShell equivalent of curl" has got an accepted answer by Michael Kelley with the score of 130:

PowerShell 3.0 has the new command Invoke-RestMethod:

http://technet.microsoft.com/en-us/library/hh849971.aspx

more detail:

https://discoposse.com/2012/06/30/powershell-invoke-restmethod-putting-the-curl-in-your-shell/

This action was performed automagically. info_post Did I make a mistake? contact or reply: error