GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — [ECS] 2b. ECS guide (Japanese), backup, restore, and upgrade · Issue #150 · fixpoint/ke2-docker

[ECS] 2b. ECS guide (Japanese), backup, restore, and upgrade #150

New issue
Copy link
New issue
Copy link
Open
Open
[ECS] 2b. ECS guide (Japanese), backup, restore, and upgrade#150
Copy link
Assignees
fixpoint-hasan
Labels
ECSAmazon ECS (Fargate) deployment work
Milestone
ECS production release

Description

@fixpoint-hasan
fixpoint-hasan
opened on Sep 25, 2026
Issue body actions

Goal

A person who did not write the guide can deploy KE2 on ECS Fargate in both network modes and run it day to day by following the guide alone, and it has backup, restore, and upgrade procedures that are tested.

Description

The present README already has a deployment part, corrected in #148's branch cleanup. This issue adds an operations part and the procedures of backup, restore, and upgrade, and states clearly what the customer must secure (the public database, and the exposure of the NLB in public mode).

ke2-docker describes a backup (export_data and the license file) and an upgrade in which the whole system is stopped, updated, and started again. This issue writes the same for ECS, with the extra steps ECS needs: an in-place task replacement, and the AWS Backup restore of #148's backup plan.

Not in this issue: an English guide, rollback to an older KE version, and disaster recovery across regions.

Implementation design

flowchart LR
    G0["First page: support boundary, availability, support table, responsibility"] --> D["Deployment part: prerequisites, network mode, database, EFS upload, deploy.sh"]
    D --> O["Operations part: logs, watch list, runbooks, data management, uninstall"]
Loading
flowchart TB
    subgraph Upgrade["Upgrade"]
        u1["Read the release notes, stop the job flows"] --> u2["Update the ke2-docker package"]
        u2 --> u3["deploy.sh with the new tag and the same values"]
        u3 --> u4["The old task stops, the new task starts (#148 deployment configuration)"]
        u4 --> u5["Check /.status"]
    end
    subgraph Restore["Restore"]
        r0{"What is lost?"}
        r0 -->|"The task, and EFS and the database are fine"| r1["The service replaces it, or run-task again"]
        r0 -->|"The EFS file system"| r2["AWS Backup restore, deploy.sh with the new --efs-id"]
        r0 -->|"The database"| r3["New or point-in-time database, deploy.sh, import_data, put back the key and the license file"]
    end
Loading

Deployment part:

  • The first page has the support boundary, the availability statement (single instance, section 3), and the support table (section 3). It states that in public mode, the customer secures the public database and the exposure of the NLB.
  • Prerequisites: the tools (AWS CLI), the permissions, and a table to choose between public and private, with the preparation for each.
  • Steps in order: the database, the EFS file system, the certificates, the AWS Transfer Family upload, and deploy.sh.
  • Images: a note that Docker Hub limits anonymous pulls (RabbitMQ and nginx come from Docker Hub), and the steps to copy the images to the customer's own registry and change the image parameters ([ECS] 1. ECS template and deploy script #148).
  • Credentials: the change of the initial root password, and how to add users for external job managers.
  • Certificates: the upload with upload-to-efs.sh, the replacement, and the task replacement needed to pick them up (section 3, D6).
  • The license executor count.
  • Verification steps after the deployment: the task is RUNNING, /.status is OK, and a copy of the .secret_key file outside the EFS file system.
  • Network reachability: the customer confirms on their own that KE can reach the database, the job targets, and the mail, LDAP, and OIDC servers.
  • Checklist for public mode: the security group and the NLB expose ports 80, 443, and 5671 without a source limit, a risk the customer accepts or removes with private mode and a firewall in front.

Operations part:

  • Logs: the awslogs driver and the CloudWatch commands of the present README, and the audit files on the kompira-log access point with their fixed names.
  • A short list of what to watch: the task is RUNNING, the target group health of the NLB, the capacity of the EFS file system and the database, and the certificate expiry.
  • Runbooks: restart, shell access (aws ecs execute-command), RabbitMQ recovery, license change, and the data to send to support.
  • Data management: the data folder of kompira-var, export_data and import_data, and how to mount the EFS file system to reach it.
  • Uninstall and delete steps: aws cloudformation delete-stack, in the right order relative to the Transfer Family stack.

Backup, restore, and upgrade:

  • Write the backup steps: export_data (run with execute-command), a copy of the license file, a copy of the .secret_key file outside the EFS file system (required), and the daily AWS Backup plan of [ECS] 1. ECS template and deploy script #148.
  • Write the restore steps for three cases, and add one sentence: try a restore once after the first deployment.
    • The task is lost, EFS and the database are fine: the service replaces it, or run-task again.
    • The EFS file system is lost: restore it with AWS Backup, and deploy again with the restored file system's ID as --efs-id.
    • The database is lost: create a new database or restore one, deploy, run import_data, and put back the .secret_key and the license file.
  • Write the upgrade steps: read the release notes, stop the job flows if possible, update the ke2-docker package, run deploy.sh with the new image tag and the same values as at the first deployment, and check /.status.
    • Note: the steps follow update-ke2.md of the admin manual. The service is down while the task is replaced, and running job flow processes are aborted.

Test plan

  • A person who did not write the guide follows the deployment part for public mode in an empty account. Expected: KE works without help. Every place where the person stopped is recorded and fixed in the guide.
  • The same person follows it for private mode. Expected: the same result.
  • Run each check in the watch list once on a healthy deployment, and each runbook once. Expected: each one works as written.
  • Follow the backup steps on a running KE. Expected: each backup exists: the export file, the license copy, the key copy, and the AWS Backup recovery point.
  • Follow the restore steps for each of the three cases. Expected: KE works with the data in each case, and the encrypted fields are readable.
  • Follow the upgrade steps from the previous KE release to the current one. Expected: KE works, the data is kept, the task runs the new build, and the NLB's DNS name is unchanged.

ref

  • ke2-docker: ke2/cloud/awsecs/README.md, README.md, Environment.md, issues AWS ECS Fargate によるコンテナサービス上での導入手順、動作確認 #76 and AWS ECS EC2 によるコンテナサービス上での導入手順、動作確認 #76 #77
  • ke2-admin-manual: src/management/data/backup.md, src/management/data/import.md, src/management/security/secretkey.md, src/management/security/credentials.md, src/setup/single/extdb/update-ke2.md, src/setup/_common/update-params.md
  • AWS documentation: Amazon ECS Developer Guide (executing commands, updating a service), Amazon EFS User Guide (restoring a backup)
  • Depends on: [ECS] 1. ECS template and deploy script #148. Blocks: [ECS] 4. ECS release packaging #154.

Activity

  1. fixpoint-hasan
    added this to the ECS production release milestone on Sep 25, 2026
  2. fixpoint-hasan
    added a parent issue on Sep 25, 2026
    • [ECS] ECS production release #147
  3. fixpoint-hasan
    added
    ECSAmazon ECS (Fargate) deployment work
    on Sep 25, 2026
  4. fixpoint-hasan
    self-assigned this
    on Sep 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @fixpoint-hasan
    fixpoint-hasan

Labels

ECSAmazon ECS (Fargate) deployment work

Type

No type

Projects

No projects

    Milestone

    • ECS production releaseNo due date

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    You are visitor 01402792 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.