Skip to content
SudoAll

SudoAll

  • Home
  • Courses
    • MCP Protocol
    • LLM Architecture
    • AI Foundations
  • AI Insights
  • Linux
    • Howtos
    • Scripts
    • Troubleshooting
  • About

Month: October 2015

Gather metatdata on AWS from within EC2 instance.

Posted on October 12, 2015October 12, 2015 by David Saliba

So I need to get information about a particular set of machines in the cloud (AWS).

EC2_INSTANCE_ID="`wget -q -O - http://instance-data/latest/meta-data/instance-id || die \"wget instance-id has failed: $?\"`"
test -n "$EC2_INSTANCE_ID" || die 'cannot obtain instance-id'
EC2_AVAIL_ZONE="`wget -q -O - http://instance-data/latest/meta-data/placement/availability-zone || die \"wget availability-zone has failed: $?\"`"
test -n "$EC2_AVAIL_ZONE" || die 'cannot obtain availability-zone'
EC2_REGION="`echo \"$EC2_AVAIL_ZONE\" | sed -e 's:\([0-9][0-9]*\)[a-z]*\$:\\1:'`"

 

nJoy 😉

 

 

CategoriesAmazon Cloud

Latest Articles

This Week
  • How to Read AI Leaderboards in 2026 Without Getting PlayedJul 24
  • Microsoft MAI Models: In-House Reasoning Without Distillation CosplayJul 24
  • Command A+: Apache MoE Sovereignty on Two H100sJul 24
  • OpenAI Presence: Enterprise Agents Are a Deployment, Not a ToggleJul 24
  • Open MoE Router Matrix: Kimi K3, DeepSeek V4, and GLM-5.2Jul 24
  • DeepSeek V4 GA: Peak Pricing, Model-ID Retirement, and MIT WeightsJul 24
  • Meta Model API and Muse Spark 1.1: Closed Weights, OpenAI-Compatible HarnessJul 24
  • Grok 4.5 Without the Efficiency Fairy Tale: Price, Tokens, and Cursor TrainingJul 24
  • Sonnet 5 Is the Workhorse; Fable and Mythos Are the Dual-Use SplitJul 24
  • Token Efficiency Is the Product: Gemini 3.6 Flash, Flash-Lite, and Flash CyberJul 24
  • When the Eval Escapes: OpenAI Agents, Hugging Face, and Guardrail LockoutJul 24
  • GPT-5.6 Luna, Terra, Sol: Tier Routing Beats the Flagship AliasJul 24
  • Kimi K3 Without the Crush Narrative: Cost Per Task, Routing, and Harness RealityJul 24
  • Your RAG Benchmark Is Lying to YouJul 21
  • The Hormozi Business Lecture: Every Topic From the DOAC EpisodeJul 20

Recent Posts

  • How to Read AI Leaderboards in 2026 Without Getting Played
  • Microsoft MAI Models: In-House Reasoning Without Distillation Cosplay
  • Command A+: Apache MoE Sovereignty on Two H100s
  • OpenAI Presence: Enterprise Agents Are a Deployment, Not a Toggle
  • Open MoE Router Matrix: Kimi K3, DeepSeek V4, and GLM-5.2

Recent Comments

  • David Saliba on How LLMs Process Text – Tokenization Basics
  • Letta: The Stateful Agent Runtime That Manages Memory So You Don’t Have To – SudoAll.com on Your Agent Is Forgetting Things. Here’s How to Fix That.
  • Youstina on How LLMs Process Text – Tokenization Basics
  • Minxster on How to quit ESXi SSH and leave background tasks running
  • admin on Node.js handling mysql disconnects.

Archives

Categories

  • AI Foundations
  • AI Insights
  • Algo Trading
  • Amazon Cloud
  • C-Suite Takehome
  • Finance
  • General
  • Hardware
  • Howtos
  • Infra & Docker
  • LLM Architecture
  • MCP Protocol
  • News Dossier
  • Node Programming
  • Operating System Theory
  • Scripts
  • The Job
  • Troubleshooting
  • Uncategorized

Meta

  • Log in
  • Entries feed
  • Comments feed
  • WordPress.org
  • How to Read AI Leaderboards in 2026 Without Getting PlayedJuly 24, 2026
  • Microsoft MAI Models: In-House Reasoning Without Distillation CosplayJuly 24, 2026
  • Command A+: Apache MoE Sovereignty on Two H100sJuly 24, 2026
  • OpenAI Presence: Enterprise Agents Are a Deployment, Not a ToggleJuly 24, 2026
  • Open MoE Router Matrix: Kimi K3, DeepSeek V4, and GLM-5.2July 24, 2026
  • DeepSeek V4 GA: Peak Pricing, Model-ID Retirement, and MIT WeightsJuly 24, 2026
  • Meta Model API and Muse Spark 1.1: Closed Weights, OpenAI-Compatible HarnessJuly 24, 2026
  • Grok 4.5 Without the Efficiency Fairy Tale: Price, Tokens, and Cursor TrainingJuly 24, 2026
  • Sonnet 5 Is the Workhorse; Fable and Mythos Are the Dual-Use SplitJuly 24, 2026
  • Token Efficiency Is the Product: Gemini 3.6 Flash, Flash-Lite, and Flash CyberJuly 24, 2026
  • When the Eval Escapes: OpenAI Agents, Hugging Face, and Guardrail LockoutJuly 24, 2026
  • GPT-5.6 Luna, Terra, Sol: Tier Routing Beats the Flagship AliasJuly 24, 2026
Privacy Policy · About · Arcaia theme by SudoAll