Connectors
Connect AWS
Your connector acts through a role in your account that only it can assume. It finds the role itself; nothing is pasted into Tracehold.
Your connector runs the actions you allow or approve in your
AWS account through a role, TraceholdAgentRole, that only the connector
can assume. Your agents never hold AWS credentials, Tracehold's cloud cannot
assume the role, and nothing is pasted into Tracehold: the connector finds
the role in its own account, tests it, and reports the account.
With the AWS installer: nothing to do#
The connector's installer on AWS (Connectors → Add connector → AWS, as a CloudFormation stack or a Terraform file) creates the role too. Pick the access level, the most your agents may ever do in the account, and create it. When the connector starts, Connectors shows the account under Accounts your connector acts in.
A connector running anywhere else#
On EC2, EKS, your laptop or another container, the connector has its own AWS identity but no role yet. Once it is online:
Create the role
In Connectors, under Accounts your connector acts in, click Launch stack in AWS (or Open AWS CloudShell and paste the script shown). The role it creates trusts your connector's identity, and only with your organization ID as the external ID. You need permission to create IAM roles.
Your connector finds it
The connector looks for
TraceholdAgentRolein its own account every minute. Click Check now to have it look straight away. It assumes the role once to test it; nothing is recorded unless that works.
For a role in another account, or with another name, set
TRACEHOLD_CONNECTOR_AWS_ROLE_ARN where the connector runs, and allow the
connector's own identity sts:AssumeRole and sts:SetSourceIdentity on that
role (the second lets CloudTrail name the person an agent signed in as; see
Agent identity). Run in another
account than your connector's, the setup script says so and prints that
setting with the role's ARN (with Terraform, the output
tracehold_connector_setting). Calls run in the connector's region
(AWS_REGION).
Permissions#
Under Permissions: … Terraform and other ways:
| Option | The role can |
|---|---|
| Read and write, no IAM changes (default) | Everything except IAM and Organizations (PowerUserAccess) |
| Only the actions your MCP servers use | Exactly the IAM actions your servers expose. When you add actions, the page lists what the role is missing; run the setup again to update it. |
| Read only | Read (ReadOnlyAccess). AWS refuses writes, even approved ones. |
Whichever you choose, every call gets a key that lasts 15 minutes by default and can perform only the one action that was allowed or approved. The role only sets the ceiling. The connector reads what the role allows (if its identity may, as the stack grants) so the page can warn before AWS refuses a call.
The same place gives a Terraform (or OpenTofu) snippet filled in for your organization, and, where there is no Launch stack in AWS button, the CloudFormation template to download.
What gets created#
One IAM role, TraceholdAgentRole. No users, no access keys, nothing else.
Its trust policy lets only your connector's identity assume it, and only
when it presents your organization ID as the external ID.
Several AWS accounts#
Production and staging in separate accounts: install a connector in each (the installer creates the role in that account). Connectors then lists both accounts, each with its own environment label, and each server says which one it acts in on the server's page. With one account there is nothing to choose. A call goes only to the connector in its server's account.
Remove it#
Delete the role in IAM (or the stack, or run terraform destroy). Nothing
can then run in the account.
If something goes wrong#
Connectors shows what each connector found, or why it found nothing:
| What you see | What to do |
|---|---|
| "Add a connector with an identity in AWS first" | Start a connector (Connectors); the setup then names it. |
| "There is no role TraceholdAgentRole in AWS account …" | Run the setup in that account, or set TRACEHOLD_CONNECTOR_AWS_ROLE_ARN for a role elsewhere. |
| "AWS would not let your connector assume this role" | The role was created for another connector or organization. Run the setup again (it updates the role). |
| "Connector offline" | The connector that found this account is offline, so nothing runs here. Start it. |
| "No connector reports it" | Tracehold knows this account, but no running connector can reach it now. Start one that can; it finds the account again by itself. |
| CloudShell or CloudFormation says access denied | Your AWS user cannot create IAM roles. Ask an AWS administrator. |
| A warning that your servers use actions the role cannot perform | Choose the permissions again and rerun the setup. |