Sub topic 8
The Log Archive and Audit Accounts
This chapter covers the two shared accounts that Control Tower creates next to your management account. It assumes you know what an AWS Organizations account and an OU are, and that you have read how Control Tower launches a landing zone. Centralized CloudTrail and AWS Config records get their own chapter later, so here the focus is on the accounts: what each one is for, what lives in it, who should sign in to it, and what goes wrong.
Why Control Tower creates two shared accounts
During launch, Control Tower creates two member accounts in the Security OU. This OU is named Security by default.
- The Log Archive account is a storage account. It holds the central copies of CloudTrail logs and AWS Config history and snapshots for every enrolled account.
- The Audit account is a read and notification account. Security and compliance staff use it to review the whole organization, and it receives alerts.
Together with the management account, these are the three shared accounts of the landing zone. Separating them from workload accounts has a practical purpose. A person or process that can modify a workload account should not be able to alter or delete the records of what they did. Placing the records in an account that almost nobody uses supports that separation.
The Log Archive account
The Log Archive account contains Amazon S3 buckets that receive logs from every enrolled account and every governed Region. Control Tower creates and configures them. Typical contents are:
- An organization-level CloudTrail log bucket. Each account's trail delivers management events here.
- An AWS Config bucket. Config delivers configuration history and snapshots here.
- An access-logging bucket for the S3 server access logs of those buckets, in a landing zone that has this enabled.
The exact bucket names include your account IDs and Regions, and they can differ between landing zone versions. Do not hard-code them. Look them up in the account when you need them.
What protects the logs
Control Tower applies several layers to these buckets.
- Bucket policies allow the CloudTrail and Config services in enrolled accounts to write, and restrict other access.
- Encryption uses AWS KMS. You choose whether to use a Control Tower-managed key or your own customer managed key during launch or an update.
- Retention is a lifecycle setting you choose. You set one retention period for logs and another for access logs. Think of this as a compliance decision, because it determines how long records survive and what they cost.
- Preventive controls (implemented as service control policies) deny changes to the logging resources, such as modifying the bucket policy or lifecycle configuration of the log buckets.
The result is that log tampering requires privileges that ordinary users do not have, and attempts to do it are blocked by the organization itself.
Who should use it
Very few people should sign in to the Log Archive account. Reasonable access is read-only for auditors, with the ability to investigate an incident. Avoid giving administrators in workload accounts any access. If you want broader log analysis, such as querying logs with Amazon Athena, consider doing it with a dedicated, separately governed account rather than widening access to this one.
The Audit account
The Audit account is where you stand to look at the organization as a whole. Control Tower sets it up with:
- Cross-account roles that give audit tooling read access, and in some cases limited write access, to enrolled accounts. These roles let security tools inspect resources without a user having to sign in to each account.
- Amazon SNS topics for notifications. Control Tower publishes aggregated notifications to one topic and drift or compliance notifications to others. You can subscribe an email address, an AWS Chatbot channel or a Lambda function.
- Config aggregation. AWS Config rules from detective controls report their results across accounts, and the Audit account is the place where you review that compliance view.
The Audit account is also a convenient place for security services that support delegated administration. Examples are Security Hub, GuardDuty and IAM Access Analyzer. Registering the Audit account, or a dedicated security tooling account, as the delegated administrator lets those services work across the organization without using the management account.
Subscribe to the notifications
Control Tower creates SNS topics, but nobody is subscribed by default beyond the email address you gave during launch. If the alerts never reach the right people, drift and compliance problems go unnoticed. List the topics from within the Audit account:
aws sns list-topics --region us-east-1Then subscribe a monitored distribution list to the relevant topic. Replace the topic ARN and email address with your own:
aws sns subscribe \
--topic-arn <topic-arn> \
--protocol email \
--notification-endpoint [email protected] \
--region us-east-1The recipient must confirm the subscription from the email they receive before messages are delivered.
Finding the accounts
You do not need to remember account IDs. List the accounts in the organization from the management account, then identify the Security OU's members:
aws organizations list-roots
aws organizations list-organizational-units-for-parent \
--parent-id <root-id>
aws organizations list-accounts-for-parent \
--parent-id <security-ou-id>The last command returns the Log Archive and Audit accounts with their IDs, names and status. Names are chosen at launch, and the defaults are Log Archive and Audit. In the console, the same information appears on the Control Tower organization page.
Signing in
You normally reach these accounts through IAM Identity Center rather than with root credentials or long-lived IAM users. Control Tower creates the groups AWSControlTowerAdmins, AWSSecurityAuditors and AWSAuditAccountAdmins, among others, with different permission sets in different accounts. As a rule:
| Group | Intended use |
|---|---|
| `AWSControlTowerAdmins` | Administer the landing zone from the management account |
| `AWSSecurityAuditors` | Read-only access to accounts for security review |
| `AWSAuditAccountAdmins` | Administer the Audit account |
Treat the exact set of groups and permission sets as something to check in your own landing zone. They are created by Control Tower and can change across versions. Assign people to groups, not directly to accounts, so that access reviews are simple.
What you must not do
Control Tower owns the resources it creates in these accounts. Changes outside its control produce drift or break logging.
Common failure modes:
- Moving an account out of the Security OU. Control Tower expects the shared accounts there. Moving them is detected as drift, and the repair path can be disruptive.
- Editing a log bucket policy to grant a team access. Preventive controls usually block this. Even where the change succeeds, it can be overwritten or flagged. Grant access with IAM roles that the existing policy already permits.
- Changing a KMS key policy so that CloudTrail or Config can no longer use the key. Log delivery then fails. Keep the statements that allow the services, and add rather than replace.
- Running workloads in these accounts. This enlarges the set of principals who can affect your records. Keep them to governance purposes.
- Ignoring SNS notifications. The landing zone can report a problem while nobody is listening.
Retention and cost
Logs accumulate for as long as the retention setting keeps them, and they are billed as S3 storage in the Log Archive account. The Config recorder and CloudTrail event delivery are billed in each enrolled account. Expect cost to grow with the number of accounts and governed Regions. Set retention to the shortest period your compliance needs allow, and review it when you update the landing zone. Later chapters on operations and cost cover this in more detail.
Checking your setup
After launch, verify the accounts from the management account. First confirm the landing zone is healthy:
aws controltower list-landing-zones --region us-east-1
aws controltower get-landing-zone \
--landing-zone-identifier <landing-zone-arn> \
--region us-east-1Check that status is ACTIVE and that drift status reports IN_SYNC. Then confirm the two accounts exist in the Security OU with the list-accounts-for-parent command shown earlier.
Exercise
A developer in a workload account asks for write access to the CloudTrail log bucket in the Log Archive account so they can delete logs that contain test data. What should you do, and why?
Show answer
Decline the change. The Log Archive account exists so that people who work in workload accounts cannot alter or delete the records of their activity, and preventive controls protect the log buckets for that reason. If test data in logs is a real problem, fix it at the source by changing what the application logs, and rely on the configured retention period to expire old logs. If someone needs to read logs, give them read-only access through IAM Identity Center rather than write access.
Exercise
You launched a landing zone, but nobody on the security team has received a drift notification in weeks. Which account do you check, what do you look at, and what do you do?
Show answer
Check the Audit account. List its SNS topics with aws sns list-topics, find the topic that receives Control Tower notifications, and check its subscriptions. Subscribe a monitored distribution list with aws sns subscribe and have the recipient confirm the email. Also confirm in the management account that get-landing-zone reports the drift status you expect.