AWS and Google Cloud
Connect cloud accounts so an agent can look up and read your cloud resources.
Connect an AWS account or a Google Cloud project to an agent as a cloud account, and it can answer questions about what runs there from the live state: which instances are in a region, what a security group allows, why a service is failing, what last month cost. Entropix only ever reads. It never calls anything that changes your cloud, even with a key that could.
Before you start
- Create a read-only identity in your cloud first: an IAM user for AWS, a service account for Google Cloud. The Make a read-only key panel on the add page walks you through it, and the steps are below.
- An account belongs to one agent. To give two agents the same account, add it to each.
- An agent holds at most 10 cloud accounts.
Cloud accounts belong on an AWS or GCP agent. Create one with the AWS or GCP type (see Create an agent): it lands straight on its add page, and its Connections tab has a Cloud accounts section.
Make a read-only AWS key
- In the AWS console, open IAM › Users and create a user named
entropix-readonly. It needs no console access. - Attach the AWS managed policies
ReadOnlyAccessandAWSBillingReadOnlyAccess(bills and invoices). For a narrower set, useViewOnlyAccessplusSecurityAudit. - Optional: add the inline policy shown under Sample inline policy (deny data reads). It denies reading the data itself (S3 objects, secrets, parameters, table rows), which
ReadOnlyAccessallows. - On the user's Security credentials, create an access key and choose "Third-party service".
ReadOnlyAccess includes the Cost Explorer and Budgets reads behind cost answers. A member account sees only its own spend; for the whole organisation's spend, add the management account too.
Make a read-only Google Cloud key
- In the Google Cloud console, open IAM & Admin › Service Accounts and create a service account named
entropix-readonly. - Grant it
roles/vieweron the project, folder or organisation, androles/cloudasset.viewerthere for the map. - For billing answers, grant
roles/bigquery.dataVieweron your billing export dataset androles/bigquery.jobUseron its project. - On the service account's Keys tab, add a key of type JSON and download it.
Add an account
- On the agent's Connections tab, in Cloud accounts, choose Add AWS account (on an AWS agent) or Add GCP account (on a GCP agent). On any other agent that already holds an account, choose Add cloud account, then pick the cloud under Which cloud?.
- Fill in Account name: lowercase letters and digits joined by single hyphens, at most 40 characters, for example
prod-readonly. The agent uses this name in its answers. - Pick an Environment: Production, Staging, Development or Other.
- Enter the key.
- AWS: Access key ID (
AKIA…) and Secret access key. - Google Cloud: paste the JSON into Service account key (JSON), or choose the file. Optionally name an Organisation or folder (
organizations/123456789012) so the map searches it in one call, and a Billing export dataset.
- AWS: Access key ID (
- Choose Test. A good key shows Key works with the account or project, the identity it signs in as, and the regions or projects it can see.
- By default the agent reads every enabled region (AWS) or every project the key can see (Google Cloud). To narrow it, open Only some regions or Only some projects and tick the ones to read. Nothing ticked reads them all.
- Choose Add account.
The key is stored encrypted and never shown again. The portal shows only the key's last four characters (and, for Google Cloud, the service account's email). If your organisation uses a runner, you can choose Use the runner's own AWS role instead (no key stored); the runner then signs every call with its own role, and Test and every read run on the runner.
If the key can change your cloud, the test shows Write-capable key. Entropix still only reads, but the key itself is more powerful than it needs to be. Replace it with one that has only the read-only roles above.
The account page and the map
After you add an account, the portal checks the key and then reads a map of what is in the account: every resource's name, id, type, region and tags. The map uses no model.
The account page shows the account or service account, the key and when it was last checked, and the regions or projects it reads. Its Map panel shows one of:
| State | What it means |
|---|---|
| Waiting | The map is read once the key passes its check. Replace the key, or choose Check again. |
| Mapping… | The portal is reading the account. It takes up to 15 minutes; the page updates when it is done. |
| Complete, partial or failed | The last scan's outcome, when it ran, how many resources and calls, the regions in use, and a table of resources per region and service. |
If the key could not read some services, What the key couldn't read lists each one with the permission to grant. Grant it, and the next scan reads them. Open the map lists every resource, 200 to a page, with filters for Service, Region (or Location) and Words (name, id, tag), and a Console link for each resource.
A scan makes at most 2,000 calls and runs for at most 15 minutes. It runs when you add the account, when the map is older than the account's frequency (daily by default; set it on Scans), and when you choose Rescan map.
Keep a key healthy
The portal checks the key when you test, add or replace it, when you choose Check again, and every 24 hours. The account's row on Connections shows key works or key failing. From the row you can also edit the environment and regions, and under More choose Replace key, Rescan map or remove the account from the agent.
To rotate a key, open Replace key, enter the new one and choose Replace key. The new key is checked first, and it must belong to the same account or project; the old one stays until the new one passes. Then revoke the old key in your cloud.
The cloud tools
An agent that holds an account gets these built-in tools. They always run freely, because they only read. An admin can turn any of them off.
| Tool | What it does |
|---|---|
aws_find | Finds the AWS read operation for a question and its parameters. Calls nothing. |
aws_call | Calls one AWS read operation on one of the agent's accounts, live. |
gcp_find | Finds the Google Cloud read method for a question and its parameters. Calls nothing. |
gcp_call | Calls one Google Cloud read method on one of the agent's accounts, live, plus guarded log and billing reads. |
cloud_map | Searches the maps of every account the agent holds, by name, id, tag, type or region. Every word must match; at most 25 hits. |
Every answer from aws_call or gcp_call starts with a line counting each list in it (for example "logGroups: 50 items; more pages: none"), so the agent counts without reading the whole answer. The agent can ask for only some parts of an answer with select, a list of paths such as logGroups[].logGroupName, so a long list fits in one answer. An answer over 12 KiB is cut to its start; when run_code is on and a code sandbox is connected, it is also kept as a file the agent can pass to run_code. Without a sandbox the agent is told to use select or a narrower call instead. Each chat and goal also starts with a short summary of each account's map, at most 1,500 bytes each. The map is a hint as of its scan; a live call is current.
The cloud tools are offered in plain chats and goals. When the agent reviews code as a specialist, it gets them too, with at most 20 live calls in a round (see Review agents and the review panel).
Which calls are allowed
- AWS: operations whose names start with
Describe,List,Get,Search,Lookup,BatchGetorHead, plus a few named reads such as CloudWatch Logs queries. Reads that return secrets or data are refused even though their names look like reads: secret values, parameters, most KMS calls, S3 object contents, DynamoDB items, Lambda code, container image pulls, EC2 passwords and console output. - Google Cloud: methods that are HTTP GET, plus two reads Google sends as POST: Cloud Logging's entry list and BigQuery queries. Billing queries may only
SELECTfrom the billing export'sgcp_billing_export_*tables, each scanning at most 10 GiB. Secret payloads and API key strings are refused.
Answers that carry secret values, such as Lambda environment variables or EC2 user data, come back with those values shown as [redacted].
What you can and can't do
- Give an agent up to 10 cloud accounts.
- Limit an account to some regions or projects.
- Replace a key without a gap: the old one works until the new one passes.
- Browse the map yourself, with a console link for each resource.
- Change anything in your cloud through Entropix, whatever the key allows.
- Use a temporary AWS key (
ASIA…) or the account's root key. - Share one account between agents. Add it to each.
- Make a cloud tool ask first. They only read, so they always run freely.
Troubleshooting
- "AWS didn't accept that key — check the access key ID and secret, or create a new key."
- The key is wrong, deleted or inactive. Create a new one.
- "That's the account's root key. Create an IAM user instead."
- Follow Make a read-only AWS key.
- "that is a temporary key (ASIA…): it expires — create an access key for an IAM user (AKIA…)"
- Temporary keys stop working, so they are refused. Use an IAM user's access key.
- "Google didn't accept that key — check it is the JSON key file of a service account, or create a new key."
- Paste the whole JSON file of a service account key.
- "The key can see no project. Grant the service account the Viewer role (roles/viewer) on a project, folder or organisation."
- Grant the role, then test again.
- "an agent holds at most 10 cloud accounts"
- Remove an account first, or use another agent.