# hkb-alert-controltower-landing-zone

Fires on: Control Tower landing zone create, update, reset or delete.

Run the [common pre-checks](/wiki/runbooks/#common-pre-checks) first.

## Symptoms
An email from `hkb master alert`: `Control Tower <call>` with the caller's ARN. The landing zone was created, updated, reset or deleted.

## Pre-checks
1. The landing zone changes only through the `hkb-org-landing-zone` stack, by reviewed change set.
2. Read its state: `aws controltower list-landing-zones --profile ro-hkb-master` and `get-landing-zone` for the version and drift status.

## Resolution
- **A planned update or reset:** wait for the operation to finish, then check the drift status is `IN_SYNC`.
- **Not planned:** a reset or update can re-enable things HKB turned off on purpose (AWS Backup, for one) and starts billing. Read the operation's details, then update `hkb-org-landing-zone` from the repository to put the manifest back.

## Post-checks
Landing zone status `ACTIVE`, drift `IN_SYNC`, and the control tests' Control Tower checks pass.

## Rollback
A stack update from the repository. A deleted landing zone can't be restored by rollback: that is a rebuild (see the [rebuild guide](/wiki/rebuild/)).

## Alert details

| Property | Value |
| --- | --- |
| Runs in | the management account, us-east-1 |
| Email | From `hkb master alert`: `Control Tower <what> at <time> by <who>.` |
| Source | `security/hkb-security-master-alerts.yaml`, resource `ControlTowerLandingZoneRule` |

The event pattern, as deployed:

```yaml
EventPattern:
  detail-type: [AWS API Call via CloudTrail]
  detail:
    eventSource: [controltower.amazonaws.com]
    eventName: [CreateLandingZone, UpdateLandingZone, ResetLandingZone, DeleteLandingZone]
```
