Dormeto

Docs

Installation

From nothing to a manager and a first router: the CLI checks, plans, then applies, as you.

3 min read

The commands are on Get started and the install page. Each timeline replays one install.

Amazon Web ServicesAWS

Elapsed

  1. You run dormeto aws install with your AWS profile. It asks the release, the mode and the administrators.
  2. The CLI checks the prerequisites, read-only: one that fails stops it, with nothing created.
  3. the state bucketBy API calls, it creates the state bucket, the build role, its log group and the CodeBuild project.
  4. the buildThe plan build runs Terraform with the manager’s release, and the CLI shows the plan.
  5. You confirm the plan. Without a terminal, dormeto aws install apply applies it later.
  6. the buildthe managerThe apply build creates the manager’s resources, as the build role.
  7. the dashboardThe CLI checks that the dashboard answers and the invitations went out.
  8. the dashboardYou sign in from your invitation, then set Discovery’s perimeter and run it.
Its seconds are an example: a build’s time depends on what it creates.

Google Cloud

Elapsed

  1. You run dormeto gcp routers install as your gcloud account, in a project and region.
  2. The CLI tests each step’s permissions first: one missing stops it, with nothing changed.
  3. It prints its plan, and you confirm it.
  4. the router’s service accountIt turns the APIs on, then creates the database, log view, roles, service account, tag and grants.
  5. the controllerIt creates the queue, then deploys the controller and the waker on Cloud Run, from Dormeto’s image.
  6. Cloud SchedulerIt creates the idle check’s Cloud Scheduler job.
  7. the controllerIt verifies that both services are ready and that the controller answers with its version.
  8. Once, you run dormeto gcp connect: the manager then reaches your projects through federation, with no key.
Its seconds are an example: a step’s time depends on Google’s.

The steps

  1. You run the CLI with your own credentials: an AWS profile, or your gcloud account.
  2. The CLI checks what it needs first, read-only: a failed check creates nothing.
  3. The CLI shows its plan, and you confirm it.
  4. The CLI applies the plan, then checks what it made.
  5. From then on, each router reports its changes to the manager.

Amazon Web ServicesAWS

  • The manager goes in one account and region, by Terraform in CodeBuild, as the install’s build role.
  • The state bucket keeps the plan and Terraform’s state: dormeto aws install apply applies a kept plan.
  • With the management account’s profile, the install also deploys organization access: Access.
  • The manager installs a router where you first onboard: Onboarding.

Google Cloud

  • The router goes in one project and region, its parts made as your gcloud account.
  • Its parts run as the router’s service account: Roles.
  • The connection makes the host project’s federation and accounts, once: Manager.
  • Run again, the install plans only what differs.

Parts and permissions

Each part acts with the role Roles names.

ComponentAWSGoogle CloudWhat it does
The CLIdormeto aws, your AWS profiledormeto gcp, your gcloud accountChecks, plans, applies, then checks again.
The buildAWS CodeBuildCodeBuild, as the install’s build role—Runs Terraform: the plan, then its apply.
Its stateAmazon S3S3, the state bucketFirestoreFirestore, the router’s databaseKeeps what was made.
What it makesThe manager’s parts: ArchitectureThe router’s parts: RolesServes the dashboard, or naps your workloads.
The connection—Workload Identity FederationFederation, two accounts: RolesLets the manager reach your projects, with no key.

What can go wrong

MessageCauseFix
Nothing was created.A check failed, or you declined its warnings.Fix the failed check, then run the install again.
Not applied; the plan is kept: dormeto aws install apply …You declined the plan.Run install apply to apply the kept plan.
Done: <steps>. Not done: <steps>. Run the same command again to continue.Google refused a step of the install.Run the same install again to finish the remaining steps.