connect-to-lightsail-instance — community connect-to-lightsail-instance, movie_finder, community, ide skills, Claude Code, Cursor, Windsurf

v1.0.0
GitHub

About this Skill

Perfect for Cloud Agents needing secure SSH connections to Lightsail instances. App for saving and searching movies

ozahirnyi ozahirnyi
[0]
[0]
Updated: 3/5/2026

Agent Capability Analysis

The connect-to-lightsail-instance skill by ozahirnyi is an open-source community AI agent skill for Claude Code and other IDE workflows, helping agents execute tasks with better context, repeatability, and domain-specific guidance.

Ideal Agent Persona

Perfect for Cloud Agents needing secure SSH connections to Lightsail instances.

Core Value

Empowers agents to establish interactive SSH connections to Lightsail instances using private keys like LightsailDefaultKey-eu-central-1.pem, facilitating remote shell access and command execution over protocols like SSH.

Capabilities Granted for connect-to-lightsail-instance

Establishing secure connections to Lightsail instances
Executing remote commands on Lightsail instances
Debugging Lightsail instance configurations

! Prerequisites & Limits

  • Requires Lightsail instance IP and private key file like LightsailDefaultKey-eu-central-1.pem
  • Limited to Lightsail instances
  • Dependent on SSH protocol compatibility
Labs Demo

Browser Sandbox Environment

⚡️ Ready to unleash?

Experience this Agent in a zero-setup browser environment powered by WebContainers. No installation required.

Boot Container Sandbox

connect-to-lightsail-instance

Install connect-to-lightsail-instance, an AI agent skill for AI agent workflows and automation. Works with Claude Code, Cursor, and Windsurf with one-command...

SKILL.md
Readonly

Connect to Lightsail instance

Connection details

WhatValue
KeyLightsailDefaultKey-eu-central-1.pem (in project root; may be gitignored)
Userec2-user
Host3.75.113.52 (update if instance IP changed)

Key path in workspace: o:\projects\movie_finder\LightsailDefaultKey-eu-central-1.pem (Windows) or o:/projects/movie_finder/LightsailDefaultKey-eu-central-1.pem (Git Bash).

Commands

Interactive SSH (open a shell on the instance):

bash
1ssh -i "o:\projects\movie_finder\LightsailDefaultKey-eu-central-1.pem" -o StrictHostKeyChecking=accept-new ec2-user@3.75.113.52

Run a single command on the instance (no interactive shell):

bash
1ssh -i "o:\projects\movie_finder\LightsailDefaultKey-eu-central-1.pem" -o StrictHostKeyChecking=accept-new ec2-user@3.75.113.52 "COMMAND_HERE"

Examples:

  • Backend only (512 MB: Grafana off) — app on 8000, nginx on host uses 80/443 and proxies to 8000:
    "cd /home/ec2-user/movie_finder && docker-compose -f docker-compose.lightsail.yml up -d"
    Without nginx (app directly on 80):
    "cd /home/ec2-user/movie_finder && docker-compose -f docker-compose.lightsail.yml -f docker-compose.lightsail-direct.yml up -d"
  • Start backend + Grafana (when instance has ≥1 GB RAM):
    "cd /home/ec2-user/movie_finder && docker-compose -f docker-compose.lightsail.yml -f docker-compose.monitoring.yml up -d"
  • Stop monitoring (free RAM) — запускай першим після ребуту, щоб Grafana не піднялась:
    "cd /home/ec2-user/movie_finder && docker-compose -f docker-compose.lightsail.yml -f docker-compose.monitoring.yml down 2>/dev/null; docker-compose -f docker-compose.lightsail.yml up -d"
  • CodeDeploy agent log (last 250 lines):
    "sudo tail -250 /var/log/aws/codedeploy-agent/codedeploy-agent.log"
  • Docker containers (backend only):
    "cd /home/ec2-user/movie_finder && docker-compose -f docker-compose.lightsail.yml ps"
  • Error logs (for debugging) — logs are kept by Docker until rotation; recent errors are still there. Agent can run this when you report an error:
    "cd /home/ec2-user/movie_finder && docker-compose -f docker-compose.lightsail.yml logs --tail=300 web 2>&1 | grep -iE 'error|exception|traceback|500|failed'"
    Full last 200 lines:
    "cd /home/ec2-user/movie_finder && docker-compose -f docker-compose.lightsail.yml logs --tail=200 web"

Script

To fetch deploy logs without typing the full SSH command:

bash
1./scripts/deploy/fetch-deploy-logs.sh "o:/projects/movie_finder/LightsailDefaultKey-eu-central-1.pem" 3.75.113.52

Manual deploy (use while CI is broken)

Deploy via CI is currently not working. Always update production yourself after pushing changes that should go to prod.

On 512 MB instance run backend only (no Grafana). Grafana eats RAM, so always stop it first, then do pull/rebuild.

Order of operations (important):

  1. Спочатку вимкнути Grafana (звільнити пам’ять), потім уже pull/build: "cd /home/ec2-user/movie_finder && docker-compose -f docker-compose.lightsail.yml -f docker-compose.monitoring.yml down 2>/dev/null; docker-compose -f docker-compose.lightsail.yml up -d" (Якщо моніторинг не був запущений — підніме backend на 8000; nginx на 80/443.)
  2. Pull latest code: "cd /home/ec2-user/movie_finder && git fetch origin main && git reset --hard origin/main"
  3. Rebuild app image (if code changed): "cd /home/ec2-user/movie_finder && docker-compose -f docker-compose.lightsail.yml build web" (Uses cache: only changed layers rebuild. Use build --no-cache web only when dependencies or Dockerfile changed.)
  4. Migrations + static (if needed): "cd /home/ec2-user/movie_finder && docker-compose -f docker-compose.lightsail.yml run --rm web poetry run python manage.py migrate --noinput && docker-compose -f docker-compose.lightsail.yml run --rm web poetry run python manage.py collectstatic --noinput"
  5. Restart backend only (app on 8000, nginx на 80): "cd /home/ec2-user/movie_finder && docker-compose -f docker-compose.lightsail.yml up -d"

Після ребуту інстансу: спочатку крок 0 (щоб Grafana/observability не піднімались і не забивали пам’ять), потім 1–4. Не запускай docker-compose.monitoring.yml на 512 MB — інстанс зависає.

Логи: при роботі тільки docker-compose.lightsail.yml (web + db) усі stdout/stderr контейнера web пишуться в Docker (драйвер json-file). Перегляд: docker-compose -f docker-compose.lightsail.yml logs --tail=200 web або з grep по error (див. Error logs вище). Ротація логів за замовчуванням — логи зберігаються, поки не перезапустиш контейнер або не спрацює ротація.

If you upgrade to ≥1 GB RAM and want Grafana again, use -f docker-compose.monitoring.yml in step 4 and start with both compose files.

Error logs when something breaks

When you report an error (e.g. 500, crash), the agent can try to SSH and run the Error logs command above to fetch recent error/exception lines from the web container. Docker keeps container stdout/stderr in a log file (json-file driver) until it’s rotated or the container is removed, so recent errors usually stay available for at least the last restarts / last tens of MB of logs. They don’t disappear instantly; only when the log is rotated or the container is recreated and the old log is discarded.

Notes

  • If the instance IP changes (e.g. after rebuild), update the host in this skill and in TROUBLESHOOTING_CODEDEPLOY.md.
  • The key file is in .gitignore (*.pem); it must exist locally in the project or another path you pass to ssh -i.

FAQ & Installation Steps

These questions and steps mirror the structured data on this page for better search understanding.

? Frequently Asked Questions

What is connect-to-lightsail-instance?

Perfect for Cloud Agents needing secure SSH connections to Lightsail instances. App for saving and searching movies

How do I install connect-to-lightsail-instance?

Run the command: npx killer-skills add ozahirnyi/movie_finder. It works with Cursor, Windsurf, VS Code, Claude Code, and 19+ other IDEs.

What are the use cases for connect-to-lightsail-instance?

Key use cases include: Establishing secure connections to Lightsail instances, Executing remote commands on Lightsail instances, Debugging Lightsail instance configurations.

Which IDEs are compatible with connect-to-lightsail-instance?

This skill is compatible with Cursor, Windsurf, VS Code, Trae, Claude Code, OpenClaw, Aider, Codex, OpenCode, Goose, Cline, Roo Code, Kiro, Augment Code, Continue, GitHub Copilot, Sourcegraph Cody, and Amazon Q Developer. Use the Killer-Skills CLI for universal one-command installation.

Are there any limitations for connect-to-lightsail-instance?

Requires Lightsail instance IP and private key file like LightsailDefaultKey-eu-central-1.pem. Limited to Lightsail instances. Dependent on SSH protocol compatibility.

How To Install

  1. 1. Open your terminal

    Open the terminal or command line in your project directory.

  2. 2. Run the install command

    Run: npx killer-skills add ozahirnyi/movie_finder. The CLI will automatically detect your IDE or AI agent and configure the skill.

  3. 3. Start using the skill

    The skill is now active. Your AI agent can use connect-to-lightsail-instance immediately in the current project.

Related Skills

Looking for an alternative to connect-to-lightsail-instance or another community skill for your workflow? Explore these related open-source skills.

View All

widget-generator

Logo of f
f

f.k.a. Awesome ChatGPT Prompts. Share, discover, and collect prompts from the community. Free and open source — self-host for your organization with complete privacy.

149.6k
0
AI

flags

Logo of vercel
vercel

flags is a Next.js feature management skill that enables developers to efficiently add or modify framework feature flags, streamlining React application development.

138.4k
0
Browser

zustand

Logo of lobehub
lobehub

The ultimate space for work and life — to find, build, and collaborate with agent teammates that grow with you. We are taking agent harness to the next level — enabling multi-agent collaboration, effortless agent team design, and introducing agents as the unit of work interaction.

72.8k
0
AI

data-fetching

Logo of lobehub
lobehub

The ultimate space for work and life — to find, build, and collaborate with agent teammates that grow with you. We are taking agent harness to the next level — enabling multi-agent collaboration, effortless agent team design, and introducing agents as the unit of work interaction.

72.8k
0
AI