AWS Macie

AWS Macie

Let AI connect your sources for you

Skip the manual setup — run this in your project and the wizard auto-detects your databases and APIs and connects them to PostHog.

PostHog Wizard hedgehog

Connect AWS Macie to PostHog to sync your data into the PostHog data warehouse for analysis and modeling.

Sync Amazon Macie findings, S3 bucket inventory, bucket sensitivity profiles, discovery jobs, member accounts, usage, data identifiers, and automated discovery settings. Enable Macie in the region you select.

Grant these IAM permissions for the tables you select: macie2:ListFindings, macie2:GetFindings, macie2:DescribeBuckets, macie2:ListClassificationJobs, macie2:ListMembers, macie2:GetResourceProfile, macie2:ListResourceProfileDetections, macie2:ListResourceProfileArtifacts, macie2:GetUsageStatistics, macie2:ListCustomDataIdentifiers, macie2:GetCustomDataIdentifier, macie2:ListManagedDataIdentifiers, macie2:ListAutomatedDiscoveryAccounts, macie2:ListClassificationScopes, and macie2:GetClassificationScope. The resource profile tables need automated sensitive data discovery turned on. Use credentials from the Macie administrator account to sync members.

Configuration

OptionDescription
Authentication
Type: select
Required: True

With an IAM role, PostHog reads with short-lived credentials and stores no key. Create a role connection with your role's ARN, then grant the role the permissions listed above.

AWS region
Type: text
Required: True

Linking AWS Macie to PostHog

  1. Go to the Data pipeline page in PostHog
  2. Click New source and select AWS Macie
  3. Fill in the required configuration fields
  4. Click Next, select the tables you want to sync, and then press Import

Supported tables

TableDescriptionSync methodIncremental fieldPrimary key
findings

Security and sensitive data findings, with affected resources and classification details.

Incremental, Full refreshupdated_at—
buckets

S3 bucket inventory, with security settings, object counts, and discovery coverage.

Full refresh——
classification_jobs

Sensitive data discovery jobs, with their status and bucket selection settings.

Full refresh——
members

Accounts associated with the Macie administrator, including former members.

Full refresh——
resource_profiles

Sensitivity profile for each S3 bucket, with counts of analyzed, sensitive, and skipped objects.

Full refresh——
resource_profile_detections

Types of sensitive data that automated discovery found in each S3 bucket, with occurrence counts.

Full refresh——
resource_profile_artifacts

S3 objects that automated discovery selected in each bucket, with the analysis result.

Full refresh——
usage_statistics

Month-to-date Macie usage, quotas, and estimated costs for each account.

Full refresh——
custom_data_identifiers

Custom data identifiers, with their regex, keywords, and severity settings.

Full refresh——
managed_data_identifiers

Managed data identifiers that Macie provides, with the category of sensitive data each detects.

Full refresh——
automated_discovery_accounts

Status of automated sensitive data discovery for each account.

Full refresh——
classification_scopes

Classification scope for automated sensitive data discovery, with the excluded S3 buckets.

Full refresh——