Installation guide

You can run services and tasks managed by AWS ECS inside of DevBoxes using AWS ECS Anywhere.

  1. Create a new cluster or start with an existing one. Note: you can only register external nodes after the cluster has been created.

  2. Visit Your Cluster > Infrastructure > Container Instances.

  3. Click on "Register external instances".

  4. In the popup, confirm the settings and click on "Generate registration command".

  5. Copy the command for Linux. You will need it later.

  6. In your DevZero box, download the installation script for ECS Anywhere: curl --proto "https" -o "./" ""

  7. Make sure the the downloaded script has the correct permissions: chmod 700 ./

  8. Run the installation script with the parameters from the command in step #5: sudo ./ --region "<region>" --cluster "<ECS cluster>" --activation-id "<id>" --activation-code "<code>" Note: the installation script will also install Docker.

  9. The new instance should now be visible in the ECS console under Your Cluster > Infrastructure > Container instances as "External" instance type.

Recipe example

version: "3"
    - type: apt-get
      packages: ["build-essential", "curl", "git", "nano", "software-properties-common", "ssh", "sudo", "tar", "unzip", "vim", "wget", "zip"]
    - type: command
      command: |
        curl --proto "https" -o "./" ""
    - type: command
      command: |
        chmod 700 ./

    - type: command
      command: |
        ./ --region "<region>" --cluster "<ECS cluster>" --activation-id "<id>" --activation-code "<code>"
      directory: /home/devzero
      user: root

When running tasks/services you should now be able to select "External" launch type in order to run them on your DevBoxes.

Last updated