Task: Use the newer IMDS /compute endpoint for region discovery
Why
/metadata/instance/compute with API version 2021-02-01 is the newer, more reliable IMDS endpoint. Use it for region discovery.
Change
RegionManager calls:
GET http://169.254.169.254/metadata/instance/compute?api-version=2021-02-01
Headers: Metadata: true
Parse the JSON response and read the location field. Cache the result process-wide. REGION_NAME env var still wins first.
Result
- Newer, more reliable IMDS endpoint.
- No public API change. Existing region telemetry unchanged.
Acceptance
Task: Use the newer IMDS
/computeendpoint for region discoveryWhy
/metadata/instance/computewith API version2021-02-01is the newer, more reliable IMDS endpoint. Use it for region discovery.Change
RegionManagercalls:Parse the JSON response and read the
locationfield. Cache the result process-wide.REGION_NAMEenv var still wins first.Result
Acceptance
RegionManagercalls/computewith2021-02-01.locationparsed from the JSON response.