Skip to content
SudoAll.com

SudoAll.com

Practical deep-dives on Linux, AI, and large language models. 290+ technical articles for developers, sysadmins, and AI engineers.

Tag: metadata

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 đŸ˜‰

 

 

CategoriesHowtos, Uncategorized

Latest Articles

This Month
  • Lesson 43 of 55: Token Optimization and Tool Search for MCP at ScaleMar 22
  • Lesson 12 of 55: Server Instructions – Guiding Agents With InitializeResultMar 22
  • Lesson 55 of 55 (Capstone): Full MCP Platform – Registry, Gateway, and AgentsMar 19
  • Lesson 54 of 55 (Capstone): Enterprise Assistant With Auth, RBAC, and Audit LogsMar 19
  • Lesson 53 of 55 (Capstone): Multi-API Integration Hub With MCPMar 19
  • Lesson 52 of 55 (Capstone): Filesystem Agent With Claude and MCPMar 19
  • Lesson 51 of 55 (Capstone): PostgreSQL Query Agent With OpenAI and MCPMar 19
  • Lesson 50 of 55: Custom MCP Transports and Protocol Extensions in Node.jsMar 19
  • Lesson 49 of 55: MCP Protocol Versioning, Compatibility, and MigrationMar 19
  • Lesson 48 of 55: Cancellation, Progress, and Backpressure in MCP StreamsMar 19
  • Lesson 47 of 55: MCP Tasks API – Long-Running Async Operations and ProgressMar 19
  • Lesson 46 of 55: MCP Registry, Discovery, and Service Mesh PatternsMar 19
  • Lesson 45 of 55: CI/CD for MCP Servers – Tests, Versioning, Zero-Downtime DeploysMar 19
  • Lesson 44 of 55: MCP Observability – Logs, Prometheus Metrics, OpenTelemetry TracesMar 19
  • Lesson 42 of 55: Scaling MCP – Load Balancing, Rate Limiting, and CachingMar 19

Recent Posts

  • Lesson 43 of 55: Token Optimization and Tool Search for MCP at Scale
  • Lesson 12 of 55: Server Instructions – Guiding Agents With InitializeResult
  • Lesson 55 of 55 (Capstone): Full MCP Platform – Registry, Gateway, and Agents
  • Lesson 54 of 55 (Capstone): Enterprise Assistant With Auth, RBAC, and Audit Logs
  • Lesson 53 of 55 (Capstone): Multi-API Integration Hub With MCP

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
  • Finance
  • General
  • Hardware
  • Howtos
  • Infra & Docker
  • LLM Architecture
  • MCP Protocol
  • Node Programming
  • Operating System Theory
  • Scripts
  • The Job
  • Troubleshooting
  • Uncategorized

Meta

  • Log in
  • Entries feed
  • Comments feed
  • WordPress.org
  • Lesson 43 of 55: Token Optimization and Tool Search for MCP at ScaleMarch 22, 2026
  • Lesson 12 of 55: Server Instructions – Guiding Agents With InitializeResultMarch 22, 2026
  • Lesson 55 of 55 (Capstone): Full MCP Platform – Registry, Gateway, and AgentsMarch 19, 2026
  • Lesson 54 of 55 (Capstone): Enterprise Assistant With Auth, RBAC, and Audit LogsMarch 19, 2026
  • Lesson 53 of 55 (Capstone): Multi-API Integration Hub With MCPMarch 19, 2026
  • Lesson 52 of 55 (Capstone): Filesystem Agent With Claude and MCPMarch 19, 2026
  • Lesson 51 of 55 (Capstone): PostgreSQL Query Agent With OpenAI and MCPMarch 19, 2026
  • Lesson 50 of 55: Custom MCP Transports and Protocol Extensions in Node.jsMarch 19, 2026
  • Lesson 49 of 55: MCP Protocol Versioning, Compatibility, and MigrationMarch 19, 2026
  • Lesson 48 of 55: Cancellation, Progress, and Backpressure in MCP StreamsMarch 19, 2026
  • Lesson 47 of 55: MCP Tasks API – Long-Running Async Operations and ProgressMarch 19, 2026
  • Lesson 46 of 55: MCP Registry, Discovery, and Service Mesh PatternsMarch 19, 2026
Proudly powered by WordPress Arcaia theme by SudoAll