Skip to content

Instantly share code, notes, and snippets.

@Voronenko
Created February 22, 2019 15:34
Show Gist options
  • Save Voronenko/afe101ebdfedc7056a1fde7800f751bf to your computer and use it in GitHub Desktop.
Save Voronenko/afe101ebdfedc7056a1fde7800f751bf to your computer and use it in GitHub Desktop.
Invoke-RestMethod -uri http://169.254.169.254/latest/meta-data/
ami-id
ami-launch-index
ami-manifest-path
block-device-mapping/
events/
hostname
iam/
identity-credentials/
instance-action
instance-id
instance-type
local-hostname
local-ipv4
mac
metrics/
network/
placement/
profile
public-hostname
public-ipv4
public-keys/
reservation-id
security-groups
services/
$result = Invoke-RestMethod -uri http://169.254.169.254/latest/meta-data/ami-id
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment