deploying-containers-to-amazon-lightsail
Deploys, hosts, or runs a container or Docker app on Amazon Lightsail Container Service and returns a live, managed HTTPS URL at a flat monthly price — no…
Skill by awsOfficial
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/aws-deploying-containers-to-amazon-lightsail
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: backend, devops
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.
- Tools
- No tools found
- Secrets
- None asked for
- Install scripts
- None found
Network hosts it talks to 1
codeload.github.com· found in install command
Files it touches
~/.claude/skills/deploying-containers-to-amazon-lightsail
What's inside
- Skill name
deploying-containers-to-amazon-lightsail- Description
- Deploys, hosts, or runs a container or Docker app on Amazon Lightsail Container Service and returns a live, managed HTTPS URL at a flat monthly price — no cluster, VPC, load balancer, or registry to set up. Used when deploying a container image to Lightsail from a local Docker build, a public registry image, or a GitHub repo, or when a Lightsail container deployment fails or won't serve — including when the request doesn't name Lightsail but asks to run one always-on container behind a public URL at a flat, predictable monthly price. Not for running an app on a Lightsail instance (VM) or Amazon EC2 instead of the container service, and not for workloads needing Kubernetes, autoscaling, scale-to-zero, or per-request pricing (use Amazon ECS/EKS or ECS Express Mode).
- License
- Apache-2.0
- Instructions
- 182 lines in SKILL.md · view on GitHub
Before installing
- Instructions call the network
Agent Skills spec issues
- files: referenced but missing: references/NAME.md
Files (6)
- SKILL.md
- deployment.md · references/
- github-source.md · references/
- local-image.md · references/
- public-image.md · references/
- troubleshooting.md · references/
SKILL.md (first lines)
# Deploying containers to Amazon Lightsail ## Overview Amazon Lightsail Container Service runs a container image behind a managed, HTTPS URL for a flat monthly price. The URL, TLS certificate, and load balancing are included — there is no cluster, VPC, load balancer, or registry to set up. This skill takes a container image from any source to a live, serving Lightsail deployment, and diagnoses one that won't serve. Creating the service requires two choices: **`power`**, the memory and vCPUs of each node, and **`scale`**, how many nodes run, each running a full copy of the deployment. Capacity never changes on its own — there is no autoscaling and no scale-to-zero — so you raise `power` or `scale` yourself when a service needs more. ## Prerequisites Before creating anything: - **Clarify** the image source, the port the app listens on, and the region. - **Discover options at runtime** — the available powers and regions — instead of hardcoding them. - **Confirm the plan and price.** State the flat monthly price (power × scale, charged even with no traffic) and confirm before creating billable resources — unless the user has already told you to proceed. Never create them silently. See the Pricing section below for where to read the figures. - **Fixed caps aren't adjustable.** The nodes-per-service cap is the ceiling on `scale`; containers per deployment and deployment versions are capped too. Read the values in [Lightsail quotas](https://docs.aws.amazon.com/general/latest/gr/lightsail.html) rather than offering an increase. An account's actual quota may be lower than the published default if the account was recently created or is used minimally. - **Permissions.** The calling identity needs the Lightsail actions in the Operations table below; a missing one surfaces as an access-denied error on the first call, not as a tooling or quota problem. See the Security considerations section below for scoping them. Tools: the **AWS CLI** (v2) is all a public-registry-image deploy needs — and its operations run either through the AWS MCP tools (preferred, see below) or the CLI directly. A local build or push also needs `docker` (running) and — for the `push-container-image` shortcut — the `lightsailctl` plugin (the plugin-free push uses `docker` + `register-container-image` instead). Running AWS operations: prefer the AWS MCP execution tool **`aws___run_script`** when it is available, and keep each call **short** — one operation that returns right away, not a long-running one (a call still running after ~30 seconds is cut off and drops the session). It isn't required: the same operations run through the local **`aws` CLI**, which is the fallback when no MCP tool is available. Note the build and push of a **local** image are Docker/`lightsailctl` operations that run on your machine, never through the MCP tools. Installing `lightsailctl`: needed only for the `push-container-image` shortcut, and it needs AWS CLI v2 plus a running Docker: - **macOS:** `brew install aws/tap/lightsailctl` - **Linux:** `curl "https://s3.us-west-2.amazonaws.com/lightsailctl/latest/linux-amd64/lightsailctl" -o /usr/local/bin/lightsailctl && chmod +x /usr/local/bin/lightsailctl` - **Windows:** download `https://s3.us-west-2.amazonaws.com/lightsailctl/latest/windows-amd64/lightsailctl.exe` and add it to `PATH`. If an install is blocked or the plugin still isn't found, see the troubleshooting reference — or skip the plugin entirely with the plugin-free push in [references/local-image.md](references/local-image.md). ## References The step-by-step detail lives in reference files bundled with this skill. **You MUST read the reference matching your image source, or the step you're about to do, before doing it** — each carries the exact sequence and requirements (ports, image architecture, push method) that are easy to get wrong. To open one: on the AWS MCP server, retrieve it with the skill's content-retrieval tool; otherwise read it from this skill's own directory (its location was shown to you when the skill loaded), e.g. `<skill-dir>/references/NAME.md`. **DON'T read from a bare `references/NAME.md`** — it resolves against your working directory, not the skill, and fails with "No files found"; if you hit that, prepend the skill directory and retry. - [references/public-image.md](references/public-image.md) — a public registry image (no build, no push). - [references/local-image.md](references/local-image.md) — build a local image and push it into the service's registry (`docker`; `push-container-image` or the plugin-free sequence). - [references/github-source.md](references/github-source.md) — clone and build from a GitHub repo, then follow the local-image path. - [references/deployment.md](references/deployment.md) — the deployment shape (`containers` + `publicEndpoint` + health check), how to poll to `ACTIVE`, roll back, and tear down. - [references/troubleshooting.md](references/troubleshooting.md) — `lightsailctl` not found, a `FAILED` deployment, 502/503, and `exec format error` (a CPU-architecture mismatch). ## Service, deployment, containers - **Container service** — the long-lived resource you create first. It owns the capacity (`power` × `scale`), the public HTTPS URL, the private domain, and its own image registry. Billing runs from creation to deletion. - **Deployment** — an immutable, versioned spec of what to run on that service. One is active at a time, and creating another replaces the spec entirely. - **Containers** — entries inside a deployment (the per-deployment cap is in the Lightsail quotas linked above). Each has a name, an image, and ports; exactly one can be the public endpoint and the rest are reachable only by their siblings, over `localhost`. ## Pricing Price is set by capacity under a transfer quota. The monthly cost is the power's price × the scale, charged from creation until deletion whether or not any requests arrive. Each service includes one monthly data-transfer quota — the quota does not change regardless of the power and scale that you choose for your service — and egress above it is charged per GB at a rate that varies by Region. Inbound counts toward the quota but isn't charged when exceeded. State a price only if you have just read it from one of the sources below — never from memory, and never a placeholder such as `$0.00` for a rate you did not look up. Capacity cost is exact (power price × scale). Egress cost is not, because it depends on traffic you cannot know, so give the per-GB rate rather than a total. - **Power prices** — `get-container-service-powers` is the single source. It returns each power's monthly price per node, so quote that figure directly. - **Transfer quota** — the `dataTransferQuota` attribute on `Lightsail Containers` records, from the AWS Price List operation `get-products` with service code `AmazonLightsail`. - **Egress rate** — a separate `get-products` record, found with a `TERM_MATCH` filter on `overageType` = `ContainerSvc:Data Transfer`. Use `overageType`, not `productFamily`: `Lightsail Networking` also holds CDN, bucket, instance, and DNS overages. Narrow by `fromRegionCode`, not `regionCode`, since these records name the location they transfer out of. ## Workflow 1. **Create the service** with a chosen power and scale; poll `get-container-services` until its `state` is `READY`. `get-container-service-powers` returns each power's `name` (`nano`) and its `powerId` (`nano-1`) — when you create the service, pass the **`name`** to `--power`. 2. **Get the image in** — the one source-specific step; follow the matching reference above. 3. **Deploy** a version (its `containers` plus one `publicEndpoint` with a health check), then poll the deployment to `ACTIVE` — see the deployment reference. 4. **Verify and report** — only once the deployment is `ACTIVE`, read the generated URL from the service (it has a random id — read it, don't construct it), confirm it responds, and report the URL, the monthly price, and the teardown command. **Polling:** create and deploy return immediately and finish asynchronously — expect ~5–10 min end to end, and a still-`PENDING`/`ACTIVATING` state is normal. Poll by **repeating a short status check with a brief pause between calls** — each check is its own quick call that returns right away, with a short `sleep` in between. Don't do the waiting inside one long-running call (a loop inside a single `run_script`, or a long `shell` loop) — that's what
From aws/agent-toolkit-for-aws, Apache-2.0.
More from aws/agent-toolkit-for-aws
- 0.843score
agents-build
aws-agentcoreOfficial
Use to extend an existing agent project with memory, app integration, VPC, multi-agent, migration, model, browser, code interpreter, payments, or resource…
SkillAFreshness: A★ 3KClaude Code +9 - 0.782score
agents-pay
aws-agentcoreOfficial
Use when THIS agent needs to pay for x402-protected content at runtime: hitting a paywall mid-task, settling it via AgentCore Payments, and applying…
SkillBFreshness: B★ 3KClaude Code +9 - 0.739score
agents-optimize
aws-agentcoreOfficial
Use when measuring or improving agent quality and performance — set up evaluators, online monitoring, CI/CD quality gates, observability, or cost optimization.
SkillCFreshness: C★ 3KClaude Code +9 - 0.739score
agents-deploy
aws-agentcoreOfficial
Use when deploying your agent to AWS, or when a deploy has failed.
SkillCFreshness: C★ 3KClaude Code +9 - 0.734score
agents-get-started
aws-agentcoreOfficial
Use when a developer wants to create a new agent project or get started with AgentCore.
SkillCFreshness: C★ 3KClaude Code +9 - 0.724score
aws-transform
AWSOfficial
Performs code upgrades, migrations, and transformations using the AWS Transform (ATX) CLI.
SkillCFreshness: C★ 3KClaude Code +9 - 0.724score
agents-debug
aws-agentcoreOfficial
Use when your agent or environment is broken — wrong answers, errors, timeouts, tool failures, or CLI issues.
SkillCFreshness: C★ 3KClaude Code +9 - 0.724score
agents-harden
aws-agentcoreOfficial
Use when preparing your agent for production — IAM scoping, inbound auth (JWT, SigV4), secrets management, cold start optimization, session lifecycle, rate…
SkillCFreshness: C★ 3KClaude Code +9 - 0.700score
agents-connect
aws-agentcoreOfficial
Use when connecting your agent to external APIs, tools, or services via Gateway, or restricting tool access with Cedar policies.
SkillCFreshness: C★ 3KClaude Code +9 - 0.682score
knowledge-base-for-startups
awsOfficial
AWS Startups reference content — Activate FAQ, credits guide, programs, partner offers, sample architectures, and hundreds of learn articles spanning…
SkillAFreshness: A★ 3KClaude Code +9 - 0.682score
aws-sms-voice
awsOfficial
Onboards RCS Business Messaging and Notify OTP via the pinpoint-sms-voice-v2 AWS CLI.
SkillAFreshness: A★ 3KClaude Code +9 - 0.682score
agent-advisor
awsOfficial
Entry point for AI-agent work on AWS: pick a runtime, plan a migration for existing workloads, and build an executable POC — one phased flow.
SkillAFreshness: A★ 3KClaude Code +9
Signals
- Stars
- 3,049
- Forks
- 394
- Open issues
- 40
- Last commit (this folder)
- Oct 22, 2026 (7 days ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- Apache-2.0
- Repository
- github.com/aws/agent-toolkit-for-aws
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from aws
- 0.781score
AWS MCP Server
awsOfficial
A managed MCP server enabling AI agents to access AWS using docs, API calls, and SOP workflows.
ConnectorBFreshness: BLocal↓ 416.2K/wkClaude Code +5 - 0.781score
AWS MCP Server
awsOfficial
AWS MCP Server lets AI securely access AWS using docs, API calls, and SOP workflows.
ConnectorBFreshness: BLocal↓ 416.2K/wkClaude Code +5 - 0.682score
agent-advisor
awsOfficial
Entry point for AI-agent work on AWS: pick a runtime, plan a migration for existing workloads, and build an executable POC — one phased flow.
SkillAFreshness: A★ 3KClaude Code +9 - 0.682score
prompt-library-for-startups
awsOfficial
AWS-curated copy-paste prompts for AI coding agents (MVP scaffolding, RAG chatbot with Claude on Bedrock, security baseline evaluation, cost anomaly…
SkillAFreshness: A★ 3KClaude Code +9 - 0.682score
knowledge-base-for-startups
awsOfficial
AWS Startups reference content — Activate FAQ, credits guide, programs, partner offers, sample architectures, and hundreds of learn articles spanning…
SkillAFreshness: A★ 3KClaude Code +9 - 0.682score
aws-sms-voice
awsOfficial
Onboards RCS Business Messaging and Notify OTP via the pinpoint-sms-voice-v2 AWS CLI.
SkillAFreshness: A★ 3KClaude Code +9
Cite this page
deploying-containers-to-amazon-lightsail skill. Agent Mart. https://agentmart.dev/skills/aws-deploying-containers-to-amazon-lightsail (last updated 2026-10-24)