Documentation

Setting up

In short

Sign in to the portal, add your AWS account, and deploy the connector from the launch link it gives you. Paste the connector’s summary back and the portal tests the connection. During early access we do this together on a thirty-minute call and run a first drill. This page lists what to prepare so the call goes quickly.

Early access

The service, connector 1.0.1 and the portal are live, and the checks are tested in my own AWS accounts. Nothing has run in a customer’s account yet, so setup and the first drills are done with you on a call. Start a free pilot.

Connecting an account

  1. Sign in to the portal with your work email, and create your organisation. Each user belongs to one organisation.
  2. Add an AWS account: its account ID, every region where restores land, and, if a backup vendor restores for you, the ARN of its restore role. In this version the regions and vendor roles can’t be changed afterwards. The launch link opens in the first region you list, so if you want the RDS probe or the EBS reader, list ap-south-1 first (why).
  3. Copy the ExternalId and open the launch link. Both are shown once. The link opens CloudFormation’s quick-create page with the published connector template and your ExternalId filled in. Read the template first, choose the options you want, and create the stack (it needs permission to create named IAM roles).
  4. Wait for the portal to show the account as connected. From connector 1.1.0 the stack registers itself (AutoRegister, on by default): CloudFormation sends Muster Drill the stack’s role and version ARNs, never your ExternalId. Muster Drill checks that every role is in the account you added, then assumes MusterDrill-Read once with your ExternalId to test the connection. Only then is the account connected and allowed to send events. This adds no permission in your account, and your stack never waits on Muster Drill: it answers at once and shows any problem in the portal.
  5. Fallback: paste the stack’s ConnectorSummary output into the portal, with connector 1.0.x or with AutoRegister=false. The same checks run.
  6. Restore something with your backup tool, or tag a restored copy muster-drill:check, or ask for a check in the portal. Its result appears in the day’s report.

What to prepare

  • Restores that land in your account. An AWS Backup restore testing plan, or a backup vendor that restores into your AWS account. Restore into an isolated network when you can.
  • If a vendor makes your restores: a CloudTrail trail that logs management events, and the ARN of the IAM role the vendor restores with, exactly as IAM shows it, path included. A trail you have just created needs about 10 minutes before every call is seen.
  • Optional: the tag muster-drill:check in your vendor’s restore settings, if it allows custom tags.
  • Someone who can deploy CloudFormation with IAM roles in each account where restores land.

For database checks

  • A read-only login in the source database, created before the backup is taken. It travels with the snapshot, password included, so the copy has it too. Store its details in a Secrets Manager secret and give the connector its ARN. Only the probe can read it.
  • The VPC and private subnets your restores use, so the connector can put the probe there, and the database port (5432 for PostgreSQL, 3306 for MySQL and MariaDB).
  • A restore security group that lets the probe in, chosen when you restore, and named in the connector. Allow the database port from the probe’s security group (a stack output) in that group and nowhere else; the probe can then reach only copies in it, never your production databases. A copy restored with only the network’s default group cannot be reached, and the check says so.
  • A route from the probe to Secrets Manager: a VPC endpoint or a NAT gateway. If you use a rules file, also a route to S3 (a gateway endpoint is free).
  • PostgreSQL, MySQL or MariaDB on Amazon RDS or Aurora. On MySQL and MariaDB, the login needs only SELECT on the databases to check. An Aurora restore creates only the cluster: add a writer instance to check its data.
  • For AWS Backup restore tests: your restore subnet group and that security group in the plan’s overrides. Otherwise AWS Backup restores into the default VPC.
  • For AWS Backup restore jobs: don’t reuse the recovery point’s restore metadata as it is. For these engines it holds Port "0" and a DBName, and AWS Backup refuses both. Restoring with only the identifier, subnet group, security groups and instance class worked in my tests.

For server checks

Linux or Windows instances whose restored copy has the SSM agent running and an instance profile that allows Systems Manager, given when the copy is launched (a profile attached later was not picked up in my tests). The copy also needs a route to Systems Manager: a public address, a NAT gateway, or the ssm, ssmmessages and ec2messages VPC endpoints. For AWS Backup restore tests, set the instance profile in the plan’s overrides. Otherwise the os_script check is skipped and says why.

For a server copied to another region, set BlockDeviceMappings in the restore to the destination region’s KMS key. The copy’s restore metadata keeps the source region’s key, and the restore fails with it.

For encrypted backups

Layer 0 needs no key access. For database and volume checks on copies under customer-managed KMS keys, list those keys in the connector (KmsKeyArns). The connector lets only the probe and the EBS reader use them, and only through Secrets Manager or EBS; Muster Drill’s own roles never can. If a key’s policy is the AWS default, which delegates to IAM, listing it is enough. Otherwise the key policy must allow those two functions’ roles. Keys AWS manages for you need nothing. A copy in another region or a recovery account is under the destination vault’s key: list that one.

The connector’s options

OptionWhat it doesDefault
ExternalIdYour account’s ExternalId. The launch link fills it inFrom the portal
AllowedRegionsThe regions every role may work in. The launch link fills in the regions you gave the portalThe stack’s own region
CreateRolesCreate the roles in this stack. false for each extra region’s stacktrue
EnableValidateWrite results onto AWS Backup restore testsOn
EnableEc2ScriptServer checks at layer 1, through the connector’s two SSM documentsOff
EnableEbsReaderVolume checks at layer 1, through the EBS readerOff
EnableRdsProbe, with RdsVpcId, RdsSubnetIds, RdsPort, RdsRestoreSecurityGroupId, RdsLoginSecretArnDatabase checks at layer 1, through the probe in your restore networkOff
RdsRulesS3UriYour rules file, for layers 2 and 3None
KmsKeyArnsKeys the probe and the EBS reader may useNone
VendorRoleArnsForward your vendor’s create callsNone
ForwardBackupEventsForward AWS Backup restore eventsOn
ReadConsoleOutputLet MusterDrill-Read read servers’ boot logsOff
RequireCheckTagServer scripts and the EBS reader’s snapshots only on resources tagged muster-drill:checkOff

Muster Drill’s role, event bus and the functions’ code and hashes are filled in by the published template: keep their defaults.

Regions and more accounts

  • IAM roles are global and event rules are regional. Deploy the connector once with CreateRoles=true, then once in each other region where restores land, with CreateRoles=false and the same ExternalId, and list every region in AllowedRegions.
  • List every region in the portal too, when you add the account. Muster Drill takes events, runs the sweep and accepts manual checks only in the regions you registered there, and in this version they can’t be changed afterwards.
  • Connector 1.0.1’s probe and EBS reader run only in ap-south-1 (Mumbai). Lambda reads code only from its own region, and their code is published there for now. The roles, event rules and server scripts work in any region.
  • One connector per account. Its names are fixed. To check a recovery account, add it in the portal as another account; it gets its own ExternalId and its own connector.

Changing, updating or removing it

  • Go deeper: update the stack with the option turned on. With AutoRegister the update tells Muster Drill the new role; otherwise paste the new ConnectorSummary into the portal: Muster Drill uses only the roles it was last told about. Only that option’s role and what it needs are added.
  • Changing a setting later: a stack update that changes a setting of the probe or the EBS reader (RdsPort, RdsLoginSecretArn, RdsRulesS3Uri, RdsVpcId, RdsSubnetIds, or AllowedRegions for the EBS reader) publishes a new pinned version of that function. With AutoRegister Muster Drill learns the new version from the update; otherwise paste the new summary afterwards: Muster Drill invokes only the versions it was last told about. In connector 1.0.0 such a change did not reach the pinned version; update to 1.0.1 first, and paste the summary after that update too.
  • New connector versions are published under their own path with a changelog, and never overwritten. You update the stack yourself, from a change set you can read; Muster Drill never changes it. A version that adds a permission or changes a trust policy is a major version. If your connector is older than a check needs, that check is skipped and says to update.
  • Remove it: with the probe, first remove the rule that lets the probe’s group into your restore group, then delete the stack. Deletion with the probe can take up to 20 minutes while Lambda releases its network interfaces. Then disconnect the account in the portal, or choose Delete my data. What each does.

What it costs in AWS

Restores cost what your backup tool or AWS charges for them. The checker runs in Muster Drill’s account, so it is not on your bill. In your account:

  • The probe and the EBS reader are Lambda functions invoked once or twice per check. Sampling a restored disk cost about $0.0002 in EBS API calls in my tests.
  • A Secrets Manager VPC endpoint, if your restore network has no NAT gateway: an hourly charge per Availability Zone, about $0.01 an hour in us-east-1 at AWS’s list price.
  • The event rules, and a CloudTrail trail if you need one for a vendor.

The cost of database checks has not been measured yet.