Desc / Describe Instance Details
Describe Instance Details
Fetch detailed configuration and runtime state for a specific instance identified by its ID.
desc instance <instance_id>; desc instance <instance_id>; #!/bin/bash
# Describe Instance Details
desc instance {{instance_id}}; import subprocess
# Describe Instance Details
# Make sure to replace <placeholders> with actual values
def run_command():
cmd = [
"desc",
"instance",
"<instance_id>;"
]
try:
print(f"Executing: {' '.join(cmd)}")
subprocess.run(cmd, check=True)
except subprocess.CalledProcessError as e:
print(f"Error: {e}")
except FileNotFoundError:
print("Error: desc not found. Please install it first.")
if __name__ == "__main__":
run_command() When To Use
Essential for deep diagnostic analysis or troubleshooting of a particular instance's state and configuration.
Pro Tip
Evaluate instance state prior to deep diving; avoid unnecessary fetches for stopped or terminated instances to save resources.
Anatomy of Output
Understanding the result
Instance ID: i-0123456789abcdef
Instance Identifier Uniquely specifies the instance.
Type: t2.medium
Instance Type Defines the compute resources available.
State: running
Operational Status Indicates the current state of the instance.
Troubleshooting
Common pitfalls
No such instance id: i-000000000
Solution: Confirm the instance ID is correct and active.
Describe instance failed: UnauthorizedOperation
Solution: Ensure adequate IAM permissions for the operation.
Request limit exceeded, try again later.
Solution: Throttle requests according to API limits.
Command Breakdown
What each part is doing
-
desc - Base Command
- The executable that performs this operation. Here it runs Desc before the shell applies any redirect operators.
-
<instance_id> - instance id
- The value supplied for instance id.
Alternative Approaches
Comparable commands in other tools
Alternative observability tools for the same job.
watchman -- trigger <path/to/watched_directory> <trigger_name> '<pattern>' -- <command> Wrangler / Aggregate Logs Production Worker Common wrangler tail Progpilot / Analyze Current Directory progpilot Progpilot / Analyze Specific File Or Directory progpilot <path/to/file_or_directory>