Dormeto

Docs

Manager update

The manager goes to a new release: a plan you read, then its apply, by the install’s build.

2 min read

The commands are on the CLI’s manager page; what each release brings is on Releases. The timeline replays one update.

Elapsed

  1. You run dormeto aws manager update, or start the update from the dashboard.
  2. the manager’s APIThe manager’s API checks that the version is offered, and records an update-manager operation.
  3. the manager’s APIthe state bucketThe API writes the plan’s request in the install’s state bucket.
  4. the state bucketthe buildThe bucket’s event starts the install’s CodeBuild project: a plan build.
  5. the buildThe plan build ends: the CLI shows the plan, and asks.
  6. You confirm: the API writes the apply’s request, for the plan you saw.
  7. the state bucketthe buildThe bucket’s event starts the apply build, which updates the manager’s resources.
  8. your load balanceryour instancesMeanwhile, a visitor’s request reaches your load balancer and instances as before: no router changes.
  9. the managerThe operation succeeds. The new manager installs its own router version: Router update brings yours to it.
Its seconds are an example: a build’s time depends on the plan.

The steps

  1. You ask for the update from the CLI or the dashboard, as an administrator.
  2. The manager’s API checks that the version is offered, and records an operation.
  3. The API writes a request in the install’s state bucket, whose event starts the install’s build.
  4. The build plans the update with the release; you read the plan and confirm it.
  5. The build applies that plan, as the install’s build role.
  6. Your routers keep napping and waking: the update changes none of them.
  7. The new manager installs its own router version: Router update brings yours to it.

Parts and permissions

No router role takes part: Roles lists them.

ComponentServiceWhat it does
The requestAmazon API GatewayAPI Gateway, AWS LambdaLambdaChecks the version and records the operation.
The state bucketAmazon S3S3Holds the request, the plan and Terraform’s state.
The buildAWS CodeBuildCodeBuild, as the install’s build rolePlans, then applies the release.
The operationAmazon DynamoDBDynamoDBShows the update in Operations, running then succeeded.

What can go wrong

MessageCauseFix
an install build is runningA build runs: the install’s project runs one at a time.Wait for the build to end, then ask again.
a request is waiting for its buildAnother plan or apply is asked, its build not started yet.Wait for that build to start and end.
that plan is not the latest one, or is no longer currentA newer plan, or an apply since.Plan the update again, then apply the new plan.
<version> is not a version to update toThe version is not offered: older, or unknown.Give a version that manager changes lists.