Pinned Loading
-
-
leetcode
leetcode PublicCollection of LeetCode questions to ace the coding interview! - Created using [LeetHub](https://github.com/QasimWani/LeetHub).
Go
-
terraform-sandbox_vpc
terraform-sandbox_vpc PublicTerraform deployment for a quick, dirty VPC to use as a Sandbox for short-lived projects, POCs, and demos
HCL 1
-
dot-files
dot-files PublicMy dot files in addition to a Python3 script to deploy the files to a local machine
Python
-
-
Get EC2's region from instance metad...
Get EC2's region from instance metadata using Python 1The 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)
23Part 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.
45We 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):
Something went wrong, please refresh the page to try again.
If the problem persists, check the GitHub status page or contact support.
If the problem persists, check the GitHub status page or contact support.