Skip to content

Auto-generated

This page is generated by terraform-docs at build time from the infra/ repo. Do not edit manually.

Atrax Node

ECS service for Atrax crawler nodes. Runs headless Puppeteer browsers that connect to the Atrax API controller, perform web crawls, and store results in S3. Secrets (Bugsnag, controller auth/URL) are managed via SSM Parameter Store.

Requirements

Name Version
terraform >= 1.6.0
aws ~> 5.0

Providers

Name Version
aws ~> 5.0

Modules

No modules.

Resources

Name Type
aws_cloudwatch_log_group.atrax_node resource
aws_ecs_service.atrax_node resource
aws_ecs_task_definition.atrax_node resource
aws_iam_policy.read_ssm resource
aws_iam_role.execution_role resource
aws_iam_role.task_role resource
aws_iam_role_policy_attachment.execution_read_ssm resource
aws_iam_role_policy_attachment.execution_role_policy resource
aws_ssm_parameter.bugsnag_api_key resource
aws_ssm_parameter.controller_auth resource
aws_ssm_parameter.controller_url resource
aws_ecr_repository.atrax_node data source
aws_iam_policy_document.ecs_assume_role data source

Inputs

Name Description Type Default Required
base_tags Base tags to apply to all resources map(string) {} no
browser_slow_mo_ms Puppeteer slowMo value in ms (0 = disabled) string "0" no
checkpoint_interval_pages Number of pages between checkpoint saves to S3 string "1000" no
cluster_name ECS cluster name to deploy the service into string n/a yes
desired_count Desired number of ECS tasks number 1 no
environment Environment name string n/a yes
heartbeat_interval_ms Interval in ms for heartbeat pings to the API string "30000" no
name_prefix Prefix for resource names string n/a yes
puppeteer_user_agent User-Agent string used by Puppeteer string "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/146.0.0.0 Safari/537.36" no
region AWS region string n/a yes
s3_screenshot_url S3 screenshot bucket URL string "https://atrax-stage-screenshots.s3.eu-central-1.amazonaws.com" no
task_cpu CPU units for the ECS task number 1024 no
task_memory Memory in MB for the ECS task number 1024 no

Outputs

Name Description
service_name Name of the atrax-node ECS service