Configuring An AWS Data Source For Coordimap
Configure Coordimap AWS data sources with the correct scope_id, IAM credentials, crawl intervals, and optional VPC Flow Logs.
This guide explains how to configure the Coordimap agent to crawl an AWS account. With AWS configured correctly, Coordimap can discover EC2 instances, VPCs, load balancers, RDS instances, S3 buckets, and other AWS resources, then turn that inventory into diagrams and relationships.
For AWS, use the AWS account ID as scope_id. That value is the stable ownership boundary for AWS assets.
Prerequisites
Before you begin, make sure you have:
- Installed the Coordimap agent in an environment that can reach AWS APIs.
- Added the AWS data source in the Coordimap UI so you have an
id. - Prepared AWS credentials for the agent, either through IAM role, environment variables, or an AWS credentials file.
Use read-only permissions
Use an IAM user or IAM role with read-only permissions whenever possible. Follow the dedicated guide here: Creating an AWS Read-Only IAM User.
Find The Correct scope_id
Use the AWS account ID:
aws sts get-caller-identity --query Account --output textIf you run multiple Coordimap AWS connectors against the same account, reuse the same scope_id. That keeps all discovered assets in one identity space.
Configuration File
coordimap:
api_key: ${COORDIMAP_API_KEY}
data_sources:
- type: aws
id: <YOUR_DATA_SOURCE_ID_FROM_UI>
config:
- name: scope_id
value: "<AWS_ACCOUNT_ID>"
- name: policy_config
value: "true"
- name: access_key_id
value: ${AWS_ACCESS_KEY_ID}
- name: secret_access_key
value: ${AWS_SECRET_ACCESS_KEY}
- name: crawl_interval
value: "5m"Configuration Options
| Attribute Name | Required | Description |
|---|---|---|
type | Yes | The data source type. For AWS this must be aws. |
id | Yes | The Coordimap data source identifier created in the UI. It identifies the connector record, not the AWS account identity. |
config.name: scope_id | Yes | Stable upstream identity for the AWS account. Use the AWS account ID. |
config.name: policy_config | Yes | Set to "true" when the agent should use the host's attached IAM role or local AWS credential configuration. |
config.name: access_key_id | Conditional | AWS access key ID when you are using explicit credentials instead of instance or task role credentials. |
config.name: secret_access_key | Conditional | AWS secret access key that pairs with access_key_id. |
config.name: crawl_interval | No | How often the agent refreshes AWS inventory. See Shared Configuration Options. |
Visualizing Network Flows With VPC Flow Logs
To see how resources inside your AWS VPCs communicate, configure AWS VPC Flow Logs and ingest them through the AWS flow logs data source.
Use the same AWS account scope_id in both the AWS infrastructure crawler and the AWS flow logs crawler. That is how Coordimap knows the flow telemetry belongs to the same AWS asset graph.
Read the flow log setup guide here: AWS Flow Logs Configuration.
Next Steps
- Prepare the credentials the agent should use.
- Add the AWS data source block to the agent YAML file.
- Set
COORDIMAP_API_KEYwhere the agent runs. - Restart the agent.
- Verify that resources appear in Coordimap after the next crawl cycle.
Source References
FAQ
What should AWS use as scope_id?
Use the AWS account ID returned by aws sts get-caller-identity. This keeps AWS assets in the same identity space even if the Coordimap connector is recreated.
Should the AWS agent use access keys or an IAM role?
Prefer an IAM role when the agent runs on AWS infrastructure such as EC2 or EKS. Use access keys only when a role is not available, and store them in environment variables or a secret manager.
Should AWS Flow Logs use the same scope_id as the AWS crawler?
Yes. Use the same AWS account ID for the AWS infrastructure crawler and AWS Flow Logs crawler so flow telemetry attaches to the correct AWS assets.
Configuration Troubleshooting
Troubleshoot common Coordimap agent configuration errors, including missing scope_id, broken external_mappings, wrong Kubernetes cluster UID, and datasource identity mismatches.
Creating an AWS Read-Only IAM User for Coordimap
Create an AWS IAM read-only user and access keys for the Coordimap agent to discover cloud resources without write permissions.