Skip to content
View doublenns's full-sized avatar
  • Propense.ai
  • Dallas, TX

Block or report doublenns

Block user

Prevent this user from interacting with your repositories and sending you notifications. Learn more about blocking users.

You must be logged in to block users.

Please don't include any personal information such as legal names or email addresses. Maximum 100 characters, markdown supported. This note will be visible to only you.
Report abuse

Contact GitHub support about this user’s behavior. Learn more about reporting abuse.

Report abuse

Pinned Loading

  1. exercism exercism Public

    Go

  2. leetcode leetcode Public

    Collection of LeetCode questions to ace the coding interview! - Created using [LeetHub](https://github.com/QasimWani/LeetHub).

    Go

  3. terraform-sandbox_vpc terraform-sandbox_vpc Public

    Terraform deployment for a quick, dirty VPC to use as a Sandbox for short-lived projects, POCs, and demos

    HCL 1

  4. dot-files dot-files Public

    My dot files in addition to a Python3 script to deploy the files to a local machine

    Python

  5. mac-setup mac-setup Public

    Setup new Mac

    Shell

  6. Get EC2's region from instance metad... Get EC2's region from instance metadata using Python
    1
    The region in which an EC2 instance is located is exposed via [EC2 Instance Metadata.](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-instance-metadata.html)
    2
    
                  
    3
    Part of instance metadata is [Instance Identity Documents](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instance-identity-documents.html). Specifically, the `instance-identity/document` endpoint is a dynamic data category that contains instance attributes such as the instanceId, privateIp, instanceType. And most relevantly the instance's region.
    4
    
                  
    5
    We can query the instance identity document via the 169.254.169.254 [link-local address](https://en.wikipedia.org/wiki/Link-local_address). (This only works on EC2 instances):