Skip to content
Skillv1.0.0

ec2-backend-deployer

Deploys backend applications to EC2 instances using Docker, GitHub Actions CI/CD, and Tailscale for secure SSH access. Activates when setting up EC2 deployment pipelines, configuring container registr

by shipshitdev(0) 0 installs
Free
Sign in to install

Free account. Installing gives you the manifest plus copy-paste snippets.

See reviews

About

Imported from shipshitdev/skills (skills/ec2-backend-deployer/SKILL.md). Install upstream with npx skills add shipshitdev/skills --skill ec2-backend-deployer. Copyright stays with the author.

EC2 Backend Deployer

Authorized Scope

Apply this engine only within the user's requested task and existing explicit authorization. Loading or delegating to it grants no additional authority. Preserve report-only restrictions and the caller's target, host, provider, and cost limits. Existing approval satisfies a gate only for the same actions and scope; obtain approval before expanding them. Forward these limits to delegates.

Contract

Inputs:

  • Target repository, deployment goal, and approved AWS account/environment
  • Existing Docker, registry, CI, and host-access configuration

Outputs:

  • Scoped deployment configuration or a reviewed deployment plan
  • Health-check evidence when deployment is authorized

Creates/Modifies:

  • Docker and CI configuration within the requested setup
  • Remote deployment state only when the target and operation are authorized

External Side Effects:

  • Registry, CI, SSH, and AWS calls required for the approved deployment

Confirmation Required:

  • Before creating billable infrastructure, changing secrets, or deploying outside the explicitly approved target and action
  • Before replacing existing deployment configuration beyond the requested change

Delegates To:

  • deploy for the repository's release and deployment gates

When to Use

Use when you're:

  • Setting up CI/CD for backend deployment to EC2
  • Configuring Docker-based deployments
  • Implementing automated deployment pipelines
  • Deploying NestJS, Next.js, or Express backends
  • Setting up container registries and image management
  • Configuring secure EC2 access (Tailscale)

Quick Workflow

  1. Dockerfile: Multi-stage build (base → builder → production)
  2. Registry: GitHub Container Registry (ghcr.io) recommended
  3. CI/CD: GitHub Actions with Tailscale for secure SSH
  4. Deploy: Docker Compose on EC2 with health checks
  5. Verify: Health endpoint + deployment verification

Key Components

Docker

  • Multi-stage builds for smaller images
  • Non-root user for security
  • HEALTHCHECK for container orchestration
  • BuildKit secrets for sensitive data

GitHub Actions

  • docker/build-push-action for image building
  • tailscale/github-action for secure access
  • appleboy/ssh-action for deployment

EC2

  • Docker Compose v2 required
  • Health check verification
  • Rollback procedures

References

Use it

Copy one of these into your project. Installing also returns the manifest and these snippets.

yaml
targets:
  - https://api.opensmartroute.ai/api/v1/registry/shipshitdev-skills-ec2-backend-deployer/manifest   # or paste the manifest below

Manifest

An Open Capability Manifest: the router reads it to know what this does, what it costs and when to pick it.

shipshitdev-skills-ec2-backend-deployer.ocm.jsonjson
{
  "ocm": "1",
  "id": "shipshitdev-skills-ec2-backend-deployer",
  "kind": "skill",
  "name": "ec2-backend-deployer",
  "description": "Deploys backend applications to EC2 instances using Docker, GitHub Actions CI/CD, and Tailscale for secure SSH access. Activates when setting up EC2 deployment pipelines, configuring container registries, or wiring automated deploys for NestJS, Next.js, or Express backends.",
  "publisher": "shipshitdev",
  "version": "1.0.0",
  "capabilities": {
    "domains": [
      "coding"
    ],
    "tags": [
      "skill-md",
      "ec2",
      "deployment",
      "backend",
      "skills-sh"
    ],
    "languages": [
      "en"
    ]
  },
  "quality_prior": 0.6,
  "examples": [
    "Deploys backend applications to EC2 instances using Docker, GitHub Actions CI/CD, and Tailscale for secure SSH access. Activates when setting up EC2 deployment pipelines, configuring container registries, or wiring automated deploys for NestJS, Next.js, or Express backends."
  ],
  "primary": false,
  "metadata": {
    "source": {
      "provider": "skills.sh",
      "repository": "https://github.com/shipshitdev/skills",
      "path": "skills/ec2-backend-deployer/SKILL.md",
      "ref": "HEAD",
      "url": "https://github.com/shipshitdev/skills/blob/HEAD/skills/ec2-backend-deployer/SKILL.md",
      "key": "shipshitdev/skills/skills/ec2-backend-deployer/SKILL.md"
    }
  },
  "instructions": "# EC2 Backend Deployer\n\n## Authorized Scope\n\nApply this engine only within the user's requested task and existing explicit\nauthorization. Loading or delegating to it grants no additional authority.\nPreserve report-only restrictions and the caller's target, host, provider, and\ncost limits. Existing approval satisfies a gate only for the same actions and\nscope; obtain approval before expanding them. Forward these limits to delegates.\n\n## Contract\n\nInputs:\n\n- Target repository, deployment goal, and approved AWS account/environment\n- Existing Docker, registry, CI, and host-access configuration\n\nOu",
  "cost": {
    "context_tokens": 615
  }
}

Fetch it by URL: GET /api/v1/registry/shipshitdev-skills-ec2-backend-deployer/manifest?version=1.0.0

Reviews

Star ratings from people who tried it. One review per account; edit yours any time.

No reviews yet. Install it, try it, and be the first to rate it.