AWS Batch

AWS Batch

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 Batch to PostHog to sync your data into the PostHog data warehouse for analysis and modeling.

Sync AWS Batch jobs and resources from one region. Grant batch:DescribeJobQueues, batch:ListJobs, and batch:DescribeJobs to read jobs and job children. Grant batch:DescribeJobQueues and batch:ListServiceJobs to read service jobs. Grant batch:DescribeComputeEnvironments and batch:DescribeJobDefinitions to read those tables. Grant batch:ListSchedulingPolicies and batch:DescribeSchedulingPolicies to read scheduling policies. Grant batch:ListConsumableResources and batch:DescribeConsumableResource to read consumable resources. Grant batch:DescribeJobQueues and batch:GetJobQueueSnapshot to read job queue snapshots. Grant batch:DescribeJobQueues and batch:ListQuotaShares to read quota shares. Grant batch:DescribeServiceEnvironments to read service environments. Grant batch:ListConsumableResources and batch:ListJobsByConsumableResource to read consumable resource jobs. Connect with an IAM role, or with an access key ID and secret access key. Add a session token for temporary credentials. All tables use full refresh so later job status changes remain visible. The jobs and service jobs tables include jobs that AWS still retains in existing queues. The job children table includes the children of array jobs and the nodes of multi-node parallel jobs.

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 Batch to PostHog

  1. Go to the Data pipeline page in PostHog
  2. Click New source and select AWS Batch
  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
jobs

Jobs in each queue, with their status, attempts, and execution details. Array children and nodes are in the job_children table.

Full refresh——
job_children

Child jobs of array jobs and nodes of multi-node parallel jobs, with their execution details.

Full refresh——
service_jobs

Service jobs, such as SageMaker training jobs, in each service job queue.

Full refresh——
job_queues

Job queues, their priorities, and their associated compute environments.

Full refresh——
compute_environments

Compute environments, their capacity settings, and their state.

Full refresh——
job_definitions

Job definition revisions, including their resource requirements and container settings.

Full refresh——
scheduling_policies

Scheduling policies and their fair-share settings.

Full refresh——
consumable_resources

Consumable resources with their total, in-use, and available quantities.

Full refresh——
job_queue_snapshots

The current state of each job queue: the first runnable jobs in dispatch order and the capacity in use.

Full refresh——
quota_shares

Quota shares of each job queue, with their capacity limits and how they lend or borrow idle capacity.

Full refresh——
service_environments

Service environments that run service jobs, such as SageMaker training jobs, and their capacity limits.

Full refresh——
consumable_resource_jobs

Jobs that need each consumable resource, with the quantity they need and their status.

Full refresh——