AgentStack
Browse Sign in
Browse Why AgentStack Sell Docs
Sign in
SKILL verified MIT-0 Self-run

Cloudshell Diagnostics

skill-aws-samples-sample-ai-agent-skills-cloudshell-troubleshooting · by aws-samples

>

— No reviews yet
0 installs
43 views
0.0% view→install

Install

$ agentstack add skill-aws-samples-sample-ai-agent-skills-cloudshell-troubleshooting

✓ scanned · ✓ verified, works with Claude Code, Cursor, and more.

Security review

✓ Passed

No issues found. Passed automated security review. · v0.1.0 How review works →

  • ✓ Prompt-injection patterns
  • ✓ Secret / credential exfiltration
  • ✓ Dangerous shell & filesystem operations
  • ✓ Untrusted network calls
  • ✓ Known-malicious package signatures

What it can access

  • ✓ Network access No
  • ✓ Filesystem access No
  • ✓ Shell / process execution No
  • ● Environment & secrets Used
  • ✓ Dynamic code execution No

From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.

View the full security report →

Verified badge

Passed review? Show it. Paste this badge into your README, it links to the public security report.

AgentStack Verified badge Links to your public security report.
[![AgentStack Verified](https://agentstack.voostack.com/badges/verified.svg)](https://agentstack.voostack.com/security/report/skill-aws-samples-sample-ai-agent-skills-cloudshell-troubleshooting)

Reliability & compatibility

✓ Security review passed
0 installs to date
— no reviews yet
● 3mo ago

Declared compatibility

Claude CodeClaude Desktop

Compatibility is declared by the source manifest. End-to-end runtime verification is coming, see below.

Preview Execution monitoring

We're building live execution health for every listing: tool-call success rate, median latency, uptime, and last-checked timestamps, measured, not self-reported. It isn't live yet, so we don't show numbers we can't stand behind.

How agent discovery & health will work →
Are you the author of Cloudshell Diagnostics? Claim this listing to set pricing, connect Stripe payouts, and keep 70% of every sale.
Sign up to claim

About

AWS CloudShell Diagnostics

When to use

Any AWS CloudShell investigation — session launch failures, environment persistence, network connectivity, VPC environments, storage issues, file transfer, permissions, credentials, timeouts, performance, or custom environment configuration.

Investigation workflow

Step 1 — Collect and triage

aws cloudshell get-environment-status --environment-id 
aws cloudtrail lookup-events --lookup-attributes AttributeKey=EventSource,AttributeValue=cloudshell.amazonaws.com --max-results 20
aws iam simulate-principal-policy --policy-source-arn  --action-names cloudshell:CreateEnvironment cloudshell:GetEnvironmentStatus

Step 2 — Domain deep dive

aws cloudshell describe-environments
aws ec2 describe-vpcs --vpc-ids 
aws ec2 describe-subnets --subnet-ids  --query 'Subnets[*].{Id:SubnetId,Az:AvailabilityZone,Cidr:CidrBlock}'

Step 3 — Detailed investigation

aws cloudwatch get-metric-statistics --namespace AWS/CloudShell --metric-name SessionDuration --start-time  --end-time  --period 3600 --statistics Average
aws cloudtrail lookup-events --lookup-attributes AttributeKey=EventName,AttributeValue=CreateEnvironment --max-results 10
aws iam get-policy-version --policy-arn  --version-id 

Read references/guardrails.md before concluding on any CloudShell issue.

Tool quick reference

| Tool / API | When to use | |------------|-------------| | cloudshell get-environment-status | Check environment state | | cloudshell describe-environments | List all environments | | cloudshell create-environment | Create new environment | | cloudshell delete-environment | Delete environment | | cloudshell start-environment | Start stopped environment | | cloudshell stop-environment | Stop running environment | | iam simulate-principal-policy | Test CloudShell permissions |

Gotchas: AWS CloudShell

  • CloudShell provides 1 GB of persistent storage per region in the home directory. Files outside $HOME are ephemeral and lost on session end.
  • Sessions time out after 20 minutes of inactivity. Long-running processes must handle reconnection or use screen/tmux.
  • VPC environments require a VPC, subnet, and security group. They do NOT have internet access by default — you need a NAT gateway.
  • CloudShell is NOT available in all AWS regions. Check regional availability before troubleshooting launch failures.
  • Each user gets a maximum of 10 concurrent CloudShell environments across all regions.
  • File upload limit is 1 GB per file. File download limit is 1 GB per file. Use S3 for larger transfers.
  • CloudShell inherits the IAM permissions of the console user. There are no separate CloudShell-specific credentials.

Anti-hallucination rules

  1. Always cite specific environment IDs, error messages, or API responses as evidence.
  2. Persistent storage is ONLY in $HOME (1 GB). Never claim other directories persist.
  3. VPC environments have NO internet by default. Never assume internet connectivity in VPC mode.
  4. CloudShell inherits console user permissions. Never suggest separate CloudShell IAM roles.
  5. Spend no more than 2 minutes on any single hypothesis. Pivot if inconclusive.

12 runbooks

| Category | IDs | Covers | |----------|-----|--------| | A — Sessions | A1-A2 | Session launch failures, environment persistence | | B — Network | B1-B2 | Network connectivity, VPC environment | | C — Storage | C1-C2 | Storage issues, file transfer | | D — Permissions | D1-D2 | Permissions errors, credential issues | | E — Connectivity | E1-E2 | Timeout/disconnection, performance issues | | F — Customization | F1 | Custom environment | | Z — Catch-All | Z1 | General troubleshooting |

Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

Install and usage instructions live in the source repository linked above.

Reviews

No reviews yet, be the first.

Versions

  • v0.1.0 Imported from the upstream source.