
Amazon ECS
Amazon Web Services- Overview
- Setup
- Data & mappings
- Operations & API
- Changelog
Integrates with Amazon Elastic Container Service (ECS) to
synchronize container-orchestration inventory across the configured AWS accounts and regions. The
connector reads ECS clusters, services, tasks, and task definitions via the AWS SDK for Java v2
EcsClient and emits one Brinqa object per resource. Each of the four models maps to the
CloudResource UDM model. ECS list operations return only ARNs, so every model pairs a List* call
(to enumerate ARNs) with a Describe* call (to hydrate the full resource). Clusters, services and
tasks are described in batches, with their tags; task definitions are described one at a time, and
their tags are not read.
Data retrieved from Amazon ECS
| Connector Object | Required | Maps to Data Model |
|---|---|---|
| EcsCluster | Yes | Cloud Resource |
| EcsService | Yes | Cloud Resource |
| EcsTask | Yes | Cloud Resource |
| EcsTaskDefinition | Yes | Cloud Resource |
Model relationships
For detailed steps on how to view the data retrieved from Amazon ECS in the Brinqa Platform, see How to view your data.
Connection settings
When setting up a data integration, select Amazon ECS from the Connector dropdown and provide the following:
| Setting | Required | Default | Description |
|---|---|---|---|
| Access key ID | No | — | AWS user access key ID, if not specified, the connector consults the default credentials provider chain to try and determine the credentials to use |
| Secret access key | No | — | AWS user secret access key, if not specified, the connector consults the default credentials provider chain to try and determine the credentials to use |
| Default region | No | us-east-1 | Default AWS region, if not specified, the connector consults the default region provider chain to try and determine the region to use |
| Assume role | No | — | Amazon Resource Name for the role to assume; separate several role ARNs with commas to sync each role's account |
| External ID | No | — | Optional STS external ID, sent when assuming the role named in the Assume role setting. Required if that role's trust policy enforces an ExternalId condition; leave blank otherwise. Surrounding whitespace is ignored |
| Session duration | No | 900 | Assume role session duration in seconds, from 900 to 43200 |
| Page size | No | 100 | The maximum number of results to retrieve per operation |
| Parallel requests | No | min(4, CPU cores) | Maximum number of parallel requests |
Authentication
Authentication is shared across the AWS connector bundle via the AwsConfiguration base class. The
ECS sub-connector uses the AWS SDK for Java v2 EcsClient, which signs every request with AWS SigV4
using credentials resolved through the following chain (in order):
- STS AssumeRole — if
assumeRoleARNis configured, the connector assumes that role (using the credentials below as the principal) and uses the resulting temporary session credentials. SetexternalIdas well if the role's trust policy enforces anExternalIdcondition; it is sent on theAssumeRolecall and is required for cross-account confused-deputy protection. - Static access keys — if
accessKey/secretKeyare configured, they are used directly. - Default credentials provider chain — environment variables,
~/.aws/credentials, container role, or EC2 instance metadata.
Assumed-role sessions use the configurable durationSeconds (Session duration, default 900 s)
with the stable session name Brinqa-Ecs. assumeRoleARN may be a comma-separated list to sync
multiple accounts in one run. Roles are synced one after another. Within a role, regions are synced
in parallel, up to parallelismLevel at a time; an EcsClient is constructed per region and closed
when that region has been fully synced. Records from parallel regions are handed to the platform one
at a time.
Choosing an authentication path
The list above is the order the connector resolves credentials in. In terms of what to configure, three paths are supported:
| Path | Configure | When to use |
|---|---|---|
| STS AssumeRole (recommended) | assumeRoleARN, plus externalId if the trust policy requires one | Cross-account access, and the only path that supports an ExternalId condition. Still needs a principal, from either of the paths below. |
| Default credentials provider chain (fully keyless) | nothing | The platform runs inside your AWS account on an EC2 instance profile or an EKS IRSA role. No long-lived keys exist anywhere. |
| Static access keys (optional) | accessKey, secretKey | The platform runs outside your AWS account and no role is available. Long-lived credentials — prefer either path above. |
sts:AssumeRole is required only when assumeRoleARN is set.
Test connection first checks the credentials, and each role in Assume role, with STS
GetCallerIdentity (no IAM permission needed, but the Brinqa agent must be able to reach STS), and
fails if AWS rejects them. It then reads one ECS cluster in the configured Default region
(ListClusters, then DescribeClusters, page size 5), and fails if AWS denies either call (HTTP
401/403). Unlike a sync, which skips a region where access is denied, the test reports the denial.
Required AWS API permissions
| Permission | Purpose |
|---|---|
ecs:ListClusters | Enumerate cluster ARNs in a region |
ecs:DescribeClusters | Hydrate cluster detail and tags (used by EcsCluster) |
ecs:ListServices | Enumerate service ARNs within a cluster |
ecs:DescribeServices | Hydrate service detail and tags |
ecs:ListTasks | Enumerate task ARNs within a cluster (per desired status) |
ecs:DescribeTasks | Hydrate task detail and tags |
ecs:ListTaskDefinitions | Enumerate ACTIVE task-definition ARNs |
ecs:DescribeTaskDefinition | Hydrate task-definition detail and tags |
ec2:DescribeRegions | Enumerate the regions to sync when no explicit region/regions option is supplied |
sts:AssumeRole | Only when assumeRoleARN is set |
Sync Behavior
Each sync is a full sync. Every run enumerates all resources through the AWS APIs; the connector does not maintain a sync token or apply an incremental since date filter.
CLOUD_ACCOUNT_ID comes from the role ARN with Assume role, so it costs no API call. With access keys only, or the agent's default credentials, the connector calls STS GetCallerIdentity once per sync (no IAM permission needed); if that call fails, it logs a warning, syncs that region's records without the account, and tries again in the next region.
Errors are handled per region: if AWS denies access (HTTP 401/403) in a region, that region is skipped and logged; a region where ECS has no endpoint is skipped with a warning; any other error fails the sync once the regions already running have stopped. Every AWS call uses the AWS SDK's standard retry strategy for throttling and transient errors, with 4 retries (5 attempts) by default (maxRetries operation option), a 30-second limit per attempt, and 180 seconds per call including retries.
How to obtain Amazon ECS credentials
Create an IAM user for AWS access
For detailed steps on creating an IAM user and obtaining access keys, see the Amazon EC2 connector documentation. Follow the same process, but attach the required ECS permissions (ecs:ListClusters, ecs:DescribeClusters, ecs:ListServices, ecs:DescribeServices, ecs:ListTasks, ecs:DescribeTasks, ecs:ListTaskDefinitions, ecs:DescribeTaskDefinition) instead of the EC2 permissions. Also attach ec2:DescribeRegions, which the connector calls to discover which regions are enabled for the account before syncing. Note that replacing the EC2 permissions removes the ec2:Describe* coverage the linked walkthrough relies on, so ec2:DescribeRegions must be granted explicitly here.
The connector authenticates using the AWS SDK's credential resolution chain. If an assume-role ARN is configured, the connector assumes that IAM role using the provided credentials. Otherwise, it uses the provided access keys directly, falling back to the AWS Default Credential Provider Chain (environment variables, ~/.aws/credentials, or EC2 instance metadata).
Attribute mappings
Expand the sections below to view the mappings between the source and the Brinqa data model attributes:
EcsCluster
| Source Field Name | SDM Attribute |
|---|---|
Cluster.activeServicesCount | ACTIVE_SERVICES_COUNT |
Cluster.capacityProviders | CAPACITY_PROVIDERS (multivalued) |
Cluster.clusterArn | UID |
Cluster.clusterArn | CLUSTER_ARN |
Cluster.clusterName | CLUSTER_NAME |
Cluster.pendingTasksCount | PENDING_TASKS_COUNT |
Cluster.registeredContainerInstancesCount | REGISTERED_CONTAINER_INSTANCE_COUNT |
Cluster.runningTasksCount | RUNNING_TASKS_COUNT |
Cluster.status | SOURCE_STATUS |
Cluster.tags[] (key:value) | TAGS (multivalued) |
constant | CATEGORIES (multivalued) |
| literal AWS | CLOUD_PROVIDER |
| region being synced | REGION |
| sync timestamp | LAST_CAPTURED |
| the synced account | CLOUD_ACCOUNT_ID |
| — | NAME |
EcsService
| Source Field Name | SDM Attribute |
|---|---|
awsvpcConfiguration().securityGroups | SECURITY_GROUP_IDS (multivalued) |
awsvpcConfiguration().subnets | SUBNET_IDS (multivalued) |
constant | CATEGORIES (multivalued) |
| literal AWS | CLOUD_PROVIDER |
| region being synced | REGION |
Service.clusterArn | CLUSTER_ARN |
Service.createdAt | FIRST_SEEN |
Service.desiredCount | DESIRED_COUNT |
Service.launchTypeAsString | LAUNCH_TYPE |
Service.loadBalancers[].targetGroupArn | TARGET_GROUP_ARNS (multivalued) |
Service.networkConfiguration().awsvpcConfiguration().assignPublicIp == ENABLED | ASSIGN_PUBLIC_IP |
Service.pendingCount | PENDING_COUNT |
Service.platformFamily | PLATFORM_FAMILY |
Service.platformVersion | PLATFORM_VERSION |
Service.roleArn | SERVICE_ROLE_ARN |
Service.runningCount | RUNNING_COUNT |
Service.schedulingStrategyAsString | SCHEDULING_STRATEGY |
Service.serviceArn | UID |
Service.serviceArn | SERVICE_ARN |
Service.serviceName | SERVICE_NAME |
Service.status | SOURCE_STATUS |
Service.tags[] (key:value) | TAGS (multivalued) |
Service.taskDefinition | TASK_DEFINITION |
| sync timestamp | LAST_CAPTURED |
| the synced account | CLOUD_ACCOUNT_ID |
| — | NAME |
EcsTask
| Source Field Name | SDM Attribute |
|---|---|
constant | CATEGORIES (multivalued) |
| literal AWS | CLOUD_PROVIDER |
| region being synced | REGION |
| sync timestamp | LAST_CAPTURED |
Task.attachments[].details[name=networkInterfaceId].value | NETWORK_INTERFACE_IDS (multivalued) |
Task.attachments[].details[name=privateIPv4Address].value | PRIVATE_IP_ADDRESSES (multivalued) |
Task.attachments[].details[name=subnetId].value | SUBNET_IDS (multivalued) |
Task.availabilityZone | AVAILABILITY_ZONE |
Task.clusterArn | CLUSTER_ARN |
Task.containerInstanceArn | CONTAINER_INSTANCE_ARN |
Task.containers[].image | CONTAINER_IMAGES (multivalued) |
Task.cpu | CPU |
Task.createdAt | FIRST_SEEN |
Task.desiredStatus | DESIRED_STATUS |
Task.group | GROUP |
Task.lastStatus | SOURCE_STATUS |
Task.launchTypeAsString | LAUNCH_TYPE |
Task.memory | MEMORY |
Task.platformVersion | PLATFORM_VERSION |
Task.startedAt | LAST_STARTED |
Task.stoppedAt | LAST_STOPPED |
Task.tags[] (key:value) | TAGS (multivalued) |
Task.taskArn | UID |
Task.taskArn | NAME |
Task.taskArn | TASK_ARN |
Task.taskDefinitionArn | TASK_DEFINITION_ARN |
| the synced account | CLOUD_ACCOUNT_ID |
EcsTaskDefinition
| Source Field Name | SDM Attribute |
|---|---|
constant | CATEGORIES (multivalued) |
containerDefinitions[].environment[].name | ENVIRONMENT_KEYS (multivalued) |
containerDefinitions[].secrets[] encoded as name=valueFrom | SECRET_REFS (multivalued) |
| literal AWS | CLOUD_PROVIDER |
| region being synced | REGION |
| sync timestamp | LAST_CAPTURED |
TaskDefinition.containerDefinitions[].image | CONTAINER_IMAGES (multivalued) |
TaskDefinition.cpu | CPU |
TaskDefinition.executionRoleArn | EXECUTION_ROLE_ARN |
TaskDefinition.family | FAMILY |
TaskDefinition.family + : + TaskDefinition.revision (fallback taskDefinitionArn) | NAME |
TaskDefinition.memory | MEMORY |
TaskDefinition.networkModeAsString | NETWORK_MODE |
TaskDefinition.registeredAt | FIRST_SEEN |
TaskDefinition.requiresCompatibilitiesAsStrings | REQUIRES_COMPATIBILITIES (multivalued) |
TaskDefinition.revision | REVISION |
TaskDefinition.statusAsString | SOURCE_STATUS |
TaskDefinition.taskDefinitionArn | UID |
TaskDefinition.taskDefinitionArn | TASK_DEFINITION_ARN |
TaskDefinition.taskRoleArn | TASK_ROLE_ARN |
| the synced account | CLOUD_ACCOUNT_ID |
Operations & API
Expand each connector object to see its operation options, delta-sync behavior, and the API it uses. See connector operation options for how to apply operation options (keys and values are case-sensitive).
EcsCluster
Operation options
| Option | Type | Default | Description |
|---|---|---|---|
region / regions | Comma-separated list of regions to query (one client per region); regions takes precedence over region. | All regions enabled for the account (ec2:DescribeRegions); the Default region if AWS denies that call | |
pageSize | Page size for each ListClusters call (capped at 100). | The connector's Page size setting (100) | |
parallelismLevel | Maximum number of regions synced at the same time in this sync; overrides the Parallel requests setting. Values below 1 are treated as 1. | The Parallel requests setting (min(4, CPU cores)) | |
maxRetries | Number of retries after the first attempt of every AWS API call (throttling and transient errors). A negative value means no retries; a non-numeric value is ignored. | 4 |
Delta sync
Not supported. The connector performs a full sync of EcsCluster on every run and applies no incremental date filter.
API
- Type: AWS SDK for Java v2 (
EcsClient) · Endpoint:ecs:ListClustersthenecs:DescribeClusters
EcsService
Operation options
| Option | Type | Default | Description |
|---|---|---|---|
region / regions | Comma-separated list of regions to query (one client per region); regions takes precedence over region. | All regions enabled for the account (ec2:DescribeRegions); the Default region if AWS denies that call | |
pageSize | Page size for ListClusters/ListServices (clusters capped at 100, services at 10). | The connector's Page size setting (100) | |
parallelismLevel | Maximum number of regions synced at the same time in this sync; overrides the Parallel requests setting. Values below 1 are treated as 1. | The Parallel requests setting (min(4, CPU cores)) | |
maxRetries | Number of retries after the first attempt of every AWS API call (throttling and transient errors). A negative value means no retries; a non-numeric value is ignored. | 4 |
Delta sync
Not supported. The connector performs a full sync of EcsService on every run and applies no incremental date filter.
API
- Type: AWS SDK for Java v2 (
EcsClient) · Endpoint:ecs:ListClusters→ecs:ListServices→ecs:DescribeServices
EcsTask
Operation options
| Option | Type | Default | Description |
|---|---|---|---|
region / regions | Comma-separated list of regions to query (one client per region); regions takes precedence over region. | All regions enabled for the account (ec2:DescribeRegions); the Default region if AWS denies that call | |
pageSize | Page size for ListClusters/ListTasks (each capped at 100). | The connector's Page size setting (100) | |
fetchStoppedTasks | When true, also retrieves STOPPED tasks in addition to RUNNING. | false (RUNNING only) | |
parallelismLevel | Maximum number of regions synced at the same time in this sync; overrides the Parallel requests setting. Values below 1 are treated as 1. | The Parallel requests setting (min(4, CPU cores)) | |
maxRetries | Number of retries after the first attempt of every AWS API call (throttling and transient errors). A negative value means no retries; a non-numeric value is ignored. | 4 |
Delta sync
Not supported. The connector performs a full sync of EcsTask on every run and applies no incremental date filter.
API
- Type: AWS SDK for Java v2 (
EcsClient) · Endpoint:ecs:ListClusters→ecs:ListTasks→ecs:DescribeTasks
EcsTaskDefinition
Operation options
| Option | Type | Default | Description |
|---|---|---|---|
region / regions | Comma-separated list of regions to query (one client per region); regions takes precedence over region. | All regions enabled for the account (ec2:DescribeRegions); the Default region if AWS denies that call | |
pageSize | Page size for each ListTaskDefinitions call (capped at 100). | The connector's Page size setting (100) | |
parallelismLevel | Maximum number of regions synced at the same time in this sync; overrides the Parallel requests setting. Values below 1 are treated as 1. | The Parallel requests setting (min(4, CPU cores)) | |
maxRetries | Number of retries after the first attempt of every AWS API call (throttling and transient errors). A negative value means no retries; a non-numeric value is ignored. | 4 |
Delta sync
Not supported. The connector performs a full sync of EcsTaskDefinition on every run and applies no incremental date filter.
API
- Type: AWS SDK for Java v2 (
EcsClient) · Endpoint:ecs:ListTaskDefinitionsthenecs:DescribeTaskDefinition - Default filters:
ListTaskDefinitionsis called withstatus=ACTIVE, so only active task-definition revisions are synced.
Changelog
The Amazon ECS connector has undergone the following changes:
| Version | Description | Migration Steps |
|---|---|---|
| 3.3.0 | New Features - Records now have Categories. Categories says what kind of asset each record is, so it can be filtered and grouped with similar assets from other connectors. Clusters are Container and Infrastructure, services Container and Application, and tasks and task definitions Container. - Records now show their AWS account. Clusters, services, tasks and task definitions now have Cloud account ID, the AWS account they were synced from. With several roles in Assume role, this tells you which account each record belongs to. It needs no extra IAM permission. - New operation options for retries and parallel requests. maxRetries sets how many times the connector retries an AWS request that AWS throttled or that failed with a temporary error (default 4; 0 turns retries off). parallelismLevel overrides the Parallel requests setting for one model's sync. - Tasks and task definitions now have a Name. EcsTask records now have Name, set to the task ARN, and EcsTaskDefinition records to the family and revision, such as web:12. Before, Name was empty. It's filled in after the next sync. Improvements - Syncs across several AWS regions finish sooner. The connector now reads several regions at the same time instead of one after another. The Parallel requests setting controls how many. - Last captured is now the same for every record in a sync. Records from the same sync could show slightly different Last captured times. They now all show the time the sync started. - Tags without a value are now synced. AWS lets you add a tag that has only a key, such as pci. These tags were left out. After the next sync they appear in Tags as just the key. - Syncs are less likely to fail when AWS is briefly busy. When AWS throttles a request or has a temporary error, the connector now retries it a few more times before the sync fails. - CloudTrail shows which Brinqa connector made each call. With Assume role, the role session is now named Brinqa-Ecs instead of Brinqa- and a random ID. Trust policies that match Brinqa-* still work. - Clear error for an out-of-range Session duration. With Assume role set, a Session duration below 900 or above 43200 seconds failed with an AWS error about assuming the role. Test connection and syncs now fail with a message that gives the allowed range. - Access keys are now checked as a pair. When only one of Access key ID and Secret access key is filled in, Test connection and syncs now stop with a message asking you to fill in both, or leave both blank. Bug Fixes - Test connection now fails when the credentials can't list ECS clusters. Test connection passed when the credentials were valid but not allowed to list ECS clusters ( ecs:ListClusters), so the problem only showed up in a sync. It now fails and shows the AWS error. Other permissions the connector needs are still not checked. - Test connection now fails when AWS rejects the credentials or the role. Test connection could pass even when the access keys were invalid or the role in Assume role could not be assumed. It now checks the credentials, and each role, before anything else, and fails with the AWS error. This needs no extra IAM permission, but the Brinqa agent must be able to reach AWS STS. - Syncs now fail when a role in Assume role can't be assumed. When AWS refused to let the connector assume a role in Assume role, for example because the role was deleted or its trust policy no longer allows Brinqa, the sync skipped that role's account and still reported success, so the account's records were missing without an error. The sync now fails, and the error names the role. - Syncs no longer finish with regions missing. Before syncing, the connector asks AWS which regions are enabled for the account. When that request failed for a reason other than a missing permission, for example because AWS was briefly unavailable, the sync went on with only the Default region and still reported success. The sync now fails instead, and the next sync reads every region. Without permission to list the regions ( ec2:DescribeRegions), only the Default region is synced, as before. | N/A |
| 3.2.6 | Bug Fixes - Syncs no longer fail when Page size is set above the AWS limit. When Page size was set higher than the maximum AWS accepts for a request (100 for ECS), AWS rejected the request and the sync failed. The connector now caps each request at that maximum. Syncs that use the default Page size of 100 are unaffected. | N/A |
| 3.2.5 | Improvements - Syncs that stop because of an error now finish right away. Previously, when a sync stopped early, for example because AWS was throttling requests, the connector still contacted AWS for each remaining role in the Assume role setting before finishing. It now stops without making those extra requests. Bug Fixes - Resolved an issue where the Brinqa agent could stop running when Assume role is configured. Syncs and connection tests now release the resources they use when they finish, so those resources no longer build up over time. | N/A |
| 3.2.4 | Improvements - Parallel requests now appears with the other tuning settings. The setting was shown beside the credential fields instead of inside the Advanced section, where Page size and Session duration already appear. It now renders inside Advanced. The setting's behavior and default are unchanged. - The Advanced section heading no longer shows quotation marks. The heading was rendered as "Advanced", with the quote marks visible on the configuration screen. It now reads Advanced. | N/A |
| 3.2.3 | New Features - Roles that require an External ID can now be used. A new optional External ID setting is sent when assuming the role named in the connector's Assume role setting, so roles whose trust policy enforces an ExternalId condition — the standard protection against cross-account confused-deputy access — can now be assumed. Existing configurations are unaffected: leave it blank and the role is assumed exactly as before. The connector's authentication documentation now also describes all three supported paths — assuming a role, running fully keyless from an EC2 instance profile or EKS IRSA role, and static access keys. Bug Fixes - The Parallel requests setting is now labeled on the configuration screen. The setting was shown without its proper name or help text. It now displays its label and description. The setting's behavior and default are unchanged. | N/A |
| 3.2.2 | No changes in this release. | N/A |
| 3.2.1 | No changes in this release. | N/A |
| 3.2.0 | No changes in this release. | N/A |
| 3.1.0 | New Features - New connector — syncs ECS clusters, services, tasks, and task definitions. - fetchStoppedTasks operation option (default false). When enabled, sync also returns recently stopped tasks (visible to AWS for ~1 hour after exit), supporting historical-reachability and blast-radius reconstruction. Improvements - Sync failures are now visible. Previously, certain AWS API errors (throttling, server errors, transient network failures, validation errors) could be silently swallowed during multi-region sync, producing empty results without indicating a problem. These now surface as sync failures with a clear log entry detailing the HTTP status, AWS error code, request id, and service name. Per-region permission gaps (HTTP 401 / 403) still allow the sync to continue across other regions, but are now visible in logs. | N/A |