The most important concepts you need to know about to use SetOps efficiently are Organizations, Projects, Stages, Apps, Services, Changesets, and its CLI.
An Organization is the topmost organizational entity in SetOps. It can host multiple Projects and is bound to an AWS account.
A Project acts as a namespace for your application. It has a unique name, i.e. myproject, and stages are nested under a project.
A Stage is a self-contained deployment environment. It is tied to a project and has a unique name, i.e. staging or production. A given stage is completely isolated from all other stages, which means that it does not share any resources or data with them.
An App is a group of one or more containers that run on the SetOps platform using a container image you provide. This container image contains your application or software packages. A stage can have many Apps. Apps are always assumed
to be long-running. They run on our container-based platform using an image you provide. For example, web applications
will usually have a task named
web for the application server and possibly a task called
job for running background jobs. Apps are assumed to be stateless. They persist user data by accessing services.
A Service is an additional component such as databases, for example. Services provide additional functionality and can be linked to apps that consume them.
A Changeset is a set of commands which change a stage. The SetOps workflow for changing anything on a stage always works the same: you add a set of commands to your changeset and commit it to make your change live (or discard the changeset). Changesets work just like the Git staging area in your local repository: you add some files, then you commit.
Changesets are stored on the server per stage and user. So a user can log in from multiple computers and edit the stored changeset and commit or discard it.
In this example, there is a Stage with one App web and two Services, database, and store. Let’s say we want to create another App. This is done with a Changeset that contains a Command to create the App and set its Scale to 2. When the Changeset is committed, the Stage has the two Apps web and worker with the Services database and store.
The Command Line Interface (CLI) is the heart of SetOps. You can create, configure, deploy and manage your application with this single tool. The CLI commands follow a consistent and intuitive pattern.
- scope flags
We separate commands from subcommands with a
:. The scope flags have the same name as the belonging commands and define the scope for a lower-level command.
The following examples explain commands, subcommands, scope flags, and arguments:
setops --scope-flag command:subcomand argument setops project:create myproject setops --project myproject stage:create production setops --project myproject --stage production app:create web setops --project myproject --stage production --app web container:set port 3000
The command hierarchy looks like following:
setops └─ project └─ stage ├─ app ├─ container ├─ set └─ unset ├─ network ├─ resource ├─ env ├─ domain ├─ task └─ log ├─ service ├─ link ├─ backup └─ option ├─ notification ├─ changeset └─ user ├─ invite └─ remove
The CLI nests every lower-level command with a scope flag. For example, let’s take a look at the
container command: It is nested below
app. So to use
container:set, you need to provide the following scope flags for this lower-level command:
setops --project myproject --stage production --app web container:set ARGUMENT
You can set all flags either in front or after the command; for better readability of our documentation, we place scope flags at the start of the command.
This is a list of common subcommands:
We use these terms consistently for any resource: it is
A command without a colon-separated subcommand is the list command, returning a list of all resources of this type.