Skip to content

Instantly share code, notes, and snippets.

@AlexeySolovyev
Forked from jhaddix/cloud_metadata.txt
Created April 20, 2018 14:23
Show Gist options
  • Save AlexeySolovyev/0e6a6b6c80884632ebcf5f9323d82925 to your computer and use it in GitHub Desktop.
Save AlexeySolovyev/0e6a6b6c80884632ebcf5f9323d82925 to your computer and use it in GitHub Desktop.

Revisions

  1. @BuffaloWill BuffaloWill revised this gist Nov 22, 2017. 1 changed file with 5 additions and 1 deletion.
    6 changes: 5 additions & 1 deletion cloud_metadata.txt
    Original file line number Diff line number Diff line change
    @@ -48,5 +48,9 @@ https://metadata.packet.net/userdata
    ## Azure
    # Limited, maybe more exist?
    # https://azure.microsoft.com/en-us/blog/what-just-happened-to-my-vm-in-vm-metadata-service/

    http://169.254.169.254/metadata/v1/maintenance

    ## Update Apr 2017, Azure has more support; requires the header "Metadata: true"
    # https://docs.microsoft.com/en-us/azure/virtual-machines/windows/instance-metadata-service
    http://169.254.169.254/metadata/instance?api-version=2017-04-02
    http://169.254.169.254/metadata/instance/network/interface/0/ipv4/ipAddress/0/publicIpAddress?api-version=2017-04-02&format=text
  2. @BuffaloWill BuffaloWill revised this gist Jun 27, 2016. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions cloud_metadata.txt
    Original file line number Diff line number Diff line change
    @@ -3,6 +3,7 @@

    http://169.254.169.254/latest/user-data
    http://169.254.169.254/latest/user-data/iam/security-credentials/[ROLE NAME]
    http://169.254.169.254/latest/meta-data/iam/security-credentials/[ROLE NAME]
    http://169.254.169.254/latest/meta-data/ami-id
    http://169.254.169.254/latest/meta-data/reservation-id
    http://169.254.169.254/latest/meta-data/hostname
  3. @BuffaloWill BuffaloWill revised this gist Mar 5, 2016. 1 changed file with 9 additions and 0 deletions.
    9 changes: 9 additions & 0 deletions cloud_metadata.txt
    Original file line number Diff line number Diff line change
    @@ -40,3 +40,12 @@ http://169.254.169.254/metadata/v1/hostname
    http://169.254.169.254/metadata/v1/region
    http://169.254.169.254/metadata/v1/interfaces/public/0/ipv6/address

    ## Packetcloud

    https://metadata.packet.net/userdata

    ## Azure
    # Limited, maybe more exist?
    # https://azure.microsoft.com/en-us/blog/what-just-happened-to-my-vm-in-vm-metadata-service/

    http://169.254.169.254/metadata/v1/maintenance
  4. @BuffaloWill BuffaloWill revised this gist Mar 5, 2016. 1 changed file with 2 additions and 2 deletions.
    4 changes: 2 additions & 2 deletions cloud_metadata.txt
    Original file line number Diff line number Diff line change
    @@ -1,4 +1,4 @@
    ## AWS - File Responses
    ## AWS
    # from http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-instance-metadata.html#instancedata-data-categories

    http://169.254.169.254/latest/user-data
    @@ -9,7 +9,7 @@ http://169.254.169.254/latest/meta-data/hostname
    http://169.254.169.254/latest/meta-data/public-keys/0/openssh-key
    http://169.254.169.254/latest/meta-data/public-keys/[ID]/openssh-key

    # AWS - Dir + Files Responses
    # AWS - Dirs

    http://169.254.169.254/
    http://169.254.169.254/latest/meta-data/
  5. @BuffaloWill BuffaloWill revised this gist Mar 5, 2016. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion cloud_metadata.txt
    Original file line number Diff line number Diff line change
    @@ -17,7 +17,7 @@ http://169.254.169.254/latest/meta-data/public-keys/

    ## Google Cloud
    # https://cloud.google.com/compute/docs/metadata
    # - Requires the header `Metadata-Flavor: Google` or `X-Google-Metadata-Request: True`
    # - Requires the header "Metadata-Flavor: Google" or "X-Google-Metadata-Request: True"

    http://169.254.169.254/computeMetadata/v1/
    http://metadata.google.internal/computeMetadata/v1/
  6. @BuffaloWill BuffaloWill revised this gist Mar 5, 2016. 1 changed file with 11 additions and 4 deletions.
    15 changes: 11 additions & 4 deletions cloud_metadata.txt
    Original file line number Diff line number Diff line change
    @@ -1,4 +1,4 @@
    # AWS - File Responses
    ## AWS - File Responses
    # from http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-instance-metadata.html#instancedata-data-categories

    http://169.254.169.254/latest/user-data
    @@ -15,7 +15,7 @@ http://169.254.169.254/
    http://169.254.169.254/latest/meta-data/
    http://169.254.169.254/latest/meta-data/public-keys/

    # Google Cloud
    ## Google Cloud
    # https://cloud.google.com/compute/docs/metadata
    # - Requires the header `Metadata-Flavor: Google` or `X-Google-Metadata-Request: True`

    @@ -27,9 +27,16 @@ http://metadata.google.internal/computeMetadata/v1/instance/id
    http://metadata.google.internal/computeMetadata/v1/project/project-id

    # Google allows recursive pulls

    http://metadata.google.internal/computeMetadata/v1/instance/disks/?recursive=true

    ## Digital Ocean
    # https://developers.digitalocean.com/documentation/metadata/


    http://169.254.169.254/metadata/v1.json
    http://169.254.169.254/metadata/v1/
    http://169.254.169.254/metadata/v1/id
    http://169.254.169.254/metadata/v1/user-data
    http://169.254.169.254/metadata/v1/hostname
    http://169.254.169.254/metadata/v1/region
    http://169.254.169.254/metadata/v1/interfaces/public/0/ipv6/address

  7. @BuffaloWill BuffaloWill created this gist Feb 28, 2016.
    35 changes: 35 additions & 0 deletions cloud_metadata.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,35 @@
    # AWS - File Responses
    # from http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-instance-metadata.html#instancedata-data-categories

    http://169.254.169.254/latest/user-data
    http://169.254.169.254/latest/user-data/iam/security-credentials/[ROLE NAME]
    http://169.254.169.254/latest/meta-data/ami-id
    http://169.254.169.254/latest/meta-data/reservation-id
    http://169.254.169.254/latest/meta-data/hostname
    http://169.254.169.254/latest/meta-data/public-keys/0/openssh-key
    http://169.254.169.254/latest/meta-data/public-keys/[ID]/openssh-key

    # AWS - Dir + Files Responses

    http://169.254.169.254/
    http://169.254.169.254/latest/meta-data/
    http://169.254.169.254/latest/meta-data/public-keys/

    # Google Cloud
    # https://cloud.google.com/compute/docs/metadata
    # - Requires the header `Metadata-Flavor: Google` or `X-Google-Metadata-Request: True`

    http://169.254.169.254/computeMetadata/v1/
    http://metadata.google.internal/computeMetadata/v1/
    http://metadata/computeMetadata/v1/
    http://metadata.google.internal/computeMetadata/v1/instance/hostname
    http://metadata.google.internal/computeMetadata/v1/instance/id
    http://metadata.google.internal/computeMetadata/v1/project/project-id

    # Google allows recursive pulls

    http://metadata.google.internal/computeMetadata/v1/instance/disks/?recursive=true