Closed andy-townsend closed 1 year ago
@andy-townsend
Currently master
account type is supposed to be uased only for the management account in your organization.
If you'd like to store log data outside of your management account, you can configure CloudTrail to export all events to your desired bucket by passing var.audit_log_bucket_name
. In this case, you create the organization trail in your management account while keeping the log data in the log archive account. This is similar to the setup when you use AWS Control Tower.
Please let me know if you have any particular reason to setup CloudTrail outside of your management account, thanks!
Closing as info provided. Cheers
Describe the bug
Trying to deploy the module following the organization example but running into an issue with CloudTrail. I've delegated cloudtrail to my LogArchive account and trying to set that as account_type = "master"
When deployed, it creates everything but fails to start the Cloudtrail logging.
The trail seems to exist but it shows under the mgmt account id rather than the delegated adminstrators account.
│ Error: Error creating CloudTrail: TrailAlreadyExistsException: Trail cloudtrail-multi-region already exists for customer: (Service: AWSCloudTrail; Status Code: 400; Error Code: TrailAlreadyExistsException; Request ID: a895136c-3390-4a0e-b270-2aee05c0f931; Proxy: null)