Skip to main content
Connect an AWS account and the observer maps what’s in it, then watches its metrics and CloudTrail. It reads through the AWS API, so you run one observer for the account. You pick where it runs:
  • On this machine. The observer runs as a Docker container named rk-observer on a Linux host you already have. It reads with an access key from an IAM user you create.
  • A new EC2 instance. The installer creates a t3.micro instance, the IAM role and policy. The observer runs there as a systemd service named rk-observer, and no AWS keys are stored.

Install

In the console, open Environments, click Connect and pick Amazon AWS. Copy the key from step 2 of the dialog. Then follow one path.
You need a Linux host with outbound access to api.rubixkube.ai:443, nats.rubixkube.ai:4222, ghcr.io:443 and the AWS APIs. The installer installs Docker if it’s missing, on systems with apt-get, dnf or yum.
1

Create an IAM user

Create a user, such as rubixkube-observer, and give it an access key. For its permissions, use the policy under IAM permissions, or the ReadOnlyAccess managed policy. The installer can print the policy as JSON.
2

Run the installer as root

The dialog shows the command without sudo. Add it unless you’re already root.
3

Answer the questions

Paste your RubixKube key, then:
Then paste the access key ID and secret access key, and pick the regions to watch: this region only, all enabled regions, or a list. The keys are saved in /etc/rk-observer/observer.env, which only root can read.
4

Check the container

When the observer reports in, the dialog says the account is connected. Add an environment label, then click Open it.

What the observer watches

It refreshes the inventory every 10 minutes, metrics every 2 minutes and CloudTrail every 5 minutes.

IAM permissions

These are the read permissions the observer uses, with Resource: "*":
On a new EC2 instance, RubixKubeObserverPolicy also allows aws-mcp:*, so the observer can use the AWS MCP server. logs:FilterLogEvents and logs:GetLogEvents read the contents of CloudWatch logs, so check that fits your rules.

More than one account

Connect each account as its own source. Rubix can read across all of them, and you can put them under one environment label.

Troubleshooting

Check the API key and AWS keys in /etc/rk-observer/observer.env, and that outbound api.rubixkube.ai:443 and nats.rubixkube.ai:4222 are open.
The host can’t reach ghcr.io. The image is ghcr.io/rubixkube-io/observer-agent:aws-latest. Allow outbound HTTPS to ghcr.io and run the installer again.
Compare the IAM user or role with the policy above. On a new instance, check that RubixKubeObserverRole still has RubixKubeObserverPolicy attached.
A host in a VPC with no NAT gateway or VPC endpoints can’t reach the AWS APIs. Add them, or run the observer on a host with public egress.

Uninstall

Run the installer with --uninstall, so it doesn’t ask for a key. Which steps you follow depends on where the observer runs. On this machine:
Pick 1) This machine (local install), then 2) GCP / Azure (Docker). The second label doesn’t say AWS, but the AWS observer on a machine runs in Docker, so this is the right one. It removes the container and /etc/rk-observer. Then delete the IAM user yourself. On a new EC2 instance:
Pick 2) AWS EC2 instance + IAM resources, then enter the region and choose the instances.
This permanently terminates the instances you pick, after you type yes. If you pick every instance in the region, it also deletes RubixKubeObserverRole, RubixKubeObserverPolicy and RubixKubeObserverProfile. Don’t do that while observers run in another region, because they share those three. If you pick only some instances, the IAM resources stay.
Then delete the source in the console.

Environments

The source page, labels and links.

Kubernetes

See inside your EKS clusters.

Observers

What an observer does and where it runs.

Your first incident

Follow an incident from start to finish.